FS#20188 - When locale is zh_CN.utf8 , 'pacman -fi' fails with 'printf' error when installing.

Attached to Project: Pacman
Opened by Road Tang (roadtang) - Thursday, 15 July 2010, 14:59 GMT
Last edited by Allan McRae (Allan) - Thursday, 15 July 2010, 22:40 GMT
Task Type Bug Report
Category General
Status Closed
Assigned To No-one
Architecture i686
Severity Medium
Priority Normal
Reported Version 3.4.0
Due in Version 3.4.1
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Summary and Info:
build todotxt.tar.gz (http://aur.archlinux.org/packages.php?ID=7673)

When locale is zh_CN.utf8 , 'pacman -fi' fails with 'printf' error when installing.
en_US locale works as normal.

Steps to Reproduce:

1. download todotext.tar.gz, tar xvf todotxt.tar.gz; cd todotxt
2. makepkg -fi
$ makepkg -fi
==> 正在创建软件包:todotxt 2.6-1 (2010年 07月 15日 星期四 22:57:08 CST)
==> 正在检查运行时依赖关系...
==> 正在检查编译时依赖关系...
==> 获取源代码...
-> 找到 todo.txt_cli-2.6.tar.gz
==> 正在验证源代码文件 md5sums...
todo.txt_cli-2.6.tar.gz ... 通过
==> 解压缩源码...
-> 正在解压缩 todo.txt_cli-2.6.tar.gz,使用 bsdtar
==> 正在删除现有的 pkg/ 目录...
==> 正在进入 fakeroot 环境...
==> 正在开始 build()...
==> 正在清理安装...
-> 正在从二进制文件和库中清除不需要的系统符号...
==> 正在创建软件包...
-> 正在生成 .PKGINFO 文件...
-> 正在添加安装脚本...
-> 正在压缩软件包...
==> 正在退出 fakeroot 环境。
==> 完成创建:todotxt 2.6-1 (2010年 07月 15日 星期四 22:57:10 CST)
/usr/bin/makepkg: line 93: printf: `$': invalid format character
==> 正在使用
==> 错误: An unknown error has occurred. Exiting...


-------------------------------------------------
$ env LC_ALL=en_US makepkg -fi
==> Making package: todotxt 2.6-1 (Thu Jul 15 22:58:49 CST 2010)
==> Checking Runtime Dependencies...
==> Checking Buildtime Dependencies...
==> Retrieving Sources...
-> Found todo.txt_cli-2.6.tar.gz
==> Validating source files with md5sums...
todo.txt_cli-2.6.tar.gz ... Passed
==> Extracting Sources...
-> Extracting todo.txt_cli-2.6.tar.gz with bsdtar
==> Removing existing pkg/ directory...
==> Entering fakeroot environment...
==> Starting build()...
==> Tidying install...
-> Stripping unneeded symbols from binaries and libraries...
==> Creating package...
-> Generating .PKGINFO file...
-> Adding install script...
-> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: todotxt 2.6-1 (Thu Jul 15 22:58:50 CST 2010)
==> Installing package todotxt with pacman -U...
resolving dependencies...
looking for inter-conflicts...

Targets (1): todotxt-2.6-1

Total Download Size: 0.00 MB
Total Installed Size: 0.05 MB

Proceed with installation? [Y/n]

This task depends upon

Closed by  Allan McRae (Allan)
Thursday, 15 July 2010, 22:40 GMT
Reason for closing:  Fixed
Additional comments about closing:  Fixed in git commit 68dff734. Will be in 3.4.1.

Loading...