Pacman

Historical bug tracker for the Pacman package manager.

The pacman bug tracker has moved to gitlab:
https://gitlab.archlinux.org/pacman/pacman/-/issues

This tracker remains open for interaction with historical bugs during the transition period. Any new bugs reports will be closed without further action.
Tasklist

FS#12106 - pacman doesn't display unicode pkgdesc

Attached to Project: Pacman
Opened by Gavin Bisesi (Daenyth) - Wednesday, 12 November 2008, 16:29 GMT
Last edited by Dan McGee (toofishes) - Wednesday, 12 November 2008, 20:46 GMT
Task Type Bug Report
Category Output
Status Closed
Assigned To No-one
Architecture All
Severity Medium
Priority Normal
Reported Version 3.2.1
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

pkgdesc="Wörms of Prey is the new and free real-time Worms game."

[root@Muspelheimr ~]# pacman -Ss wormsofprey
arch-games/wormsofprey 0.4.3-1

[root@Muspelheimr ~]# pacman -Si wormsofprey | grep Desc
Description : None
This task depends upon

Closed by  Dan McGee (toofishes)
Wednesday, 12 November 2008, 20:46 GMT
Reason for closing:  Not a bug
Comment by Evangelos Foutras (foutrelis) - Wednesday, 12 November 2008, 20:32 GMT
I did some poking around and I've come to the conclusion that the description isn't picked up by the repo-add script. This is what's happening around line 156:

[foutrelis@foutboxd staging]$ bsdtar -xOf wormsofprey-0.4.3-1-i686.pkg.tar.gz .PKGINFO | grep ^pkgdesc | sed 's|\(\w*\)\s*=\s*\(.*\)|\1="\2"|'
pkgdesc="W"�rms of Prey is the new and free real-time Worms game.

The output is then evaluated leading to "-bash: of: command not found" and causing pkgdesc not to be set.

That aside, I noticed that the PKGBUILD of wormsofprey is encoded in ISO-8859-1 (that's what `file' reports anyways). Converting the PKGBUILD to UTF-8 (using `recode iso8859-1..utf8 PKGBUILD') and rebuilding the package, produces the desired behavior:

[foutrelis@foutboxd staging]$ bsdtar -xOf wormsofprey-0.4.3-1-i686.pkg.new.tar.gz .PKGINFO | grep ^pkgdesc | sed 's|\(\w*\)\s*=\s*\(.*\)|\1="\2"|'
pkgdesc="Wörms of Prey is the new and free real-time Worms game."

Moreover, when the package is added to a database, the description is saved and retrieved correctly:

[foutrelis@foutboxd staging]$ pacman -Si wormsofprey | grep ^Desc
Description : Wörms of Prey is the new and free real-time Worms game.

Closing, unless someone believes this behavior of pacman and its accompanying scripts is unwanted and should be corrected, I'd suggest we just encode our PKGBUILDs in UTF-8 when necessary.
Comment by Gavin Bisesi (Daenyth) - Wednesday, 12 November 2008, 20:42 GMT
Pebkac strikes once again. Thanks for the help :)

Loading...