[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

CVS dpkg flaws



Hi,

CVS dpkg is doing setlocale(LC_CTYPE, "C"); here and there, but it
seems to cause that dpkg and dselect's outputs for Japanese characters
turn into "?"(question mark) under Japanese locale (LANG=ja_JP.eucJP).

# LANG=C dpkg -i ../dpkg_1.10_i386.deb 
(Reading database ... 60158 files and directories currently installed.)
Preparing to replace dpkg 1.10 (using ../dpkg_1.10_i386.deb) ...
install-info(/usr/info/Guidelines): no backup file /var/backups/infodir.bak available, giving up.
dpkg: warning - old pre-removal script returned error exit status 1
dpkg - trying script from the new package instead ...
dpkg: ... it looks like that went OK.
Unpacking replacement dpkg ...
Setting up dpkg (1.10) ...

# LANG=ja_JP.eucJP dpkg -i ../dpkg_1.10_i386.deb 
(???????????????... ?? 60158 ???????????????????????????)
dpkg 1.10 ?(../dpkg_1.10_i386.deb ?)???????????????...
install-info(/usr/info/Guidelines): no backup file /var/backups/infodir.bak available, giving up.
dpkg: ?? - ?? pre-removal ????? ????????? 1 ???????
dpkg - ??????????????????????????...
dpkg: ... OK ??????
dpkg ????????????...
dpkg (1.10) ???????? ...

How should I fix it?  (Yes, I could get proper Japanese outputs with
OUTPUT_CHARSET=EUC-JP)


And this is a simple bug fix.

Index: scripts/dpkg-architecture.pl
===================================================================
RCS file: /cvs/dpkg/dpkg/scripts/dpkg-architecture.pl,v
retrieving revision 1.24
diff -u -r1.24 dpkg-architecture.pl
--- scripts/dpkg-architecture.pl	2001/10/21 17:58:07	1.24
+++ scripts/dpkg-architecture.pl	2001/12/31 10:54:26
@@ -63,7 +63,7 @@
 	    's390',	 's390-linux',
 	    'ia64',	 'ia64-linux',
 	    'openbsd-i386', 'i386-openbsd',
-	    'freebsd-i386', 'i386-freebsd'
+	    'freebsd-i386', 'i386-freebsd',
 	    'darwin-powerpc', 'powerpc-darwin',
 	    'darwin-i386', 'i386-darwin');

-- 
YAEGASHI Takeshi <t@keshi.org> <takeshi@yaegashi.jp> <yaegashi@dodes.org>



Reply to: