Package: aptitude
Version: 0.4.11.2-1
Severity: wishlist
One of my friend Hou Zhengpeng(CCing him) has found that aptitude uses
translated string as result for comparison, which might be a problem
for asia users who use their localization but doesn't install an input
method.
Take the following code excerpts as example:
---------------------------8<------------------------------
const string okstr=_("Yes"), abortstr=_("No");
...
const bool is_ok=(strncasecmp(okstr.c_str(), buf, okstr.size())==0);
const bool is_abort=(strncasecmp(abortstr.c_str(), buf,
abortstr.size())==0);
---------------------------8<------------------------------
For Chinese user, "Yes" will be translated to "是", which will be used
for the is_ok comparison. Meanwhile, "是" will not be able to input
when input method is unavailable, which in turn isn't installed by
default install settings.
This is quite a dilemma for users using non-en_US based locales,
especially CJK-based locales. I'd propose such usage to be changed to
a letter-based comparison, as Y for Yes and N for No or something like
that.
-- Package-specific info:
aptitude 0.4.11.2 compiled at Apr 12 2008 04:21:26
Compiler: g++ 4.2.3 (Debian 4.2.3-3)
Compiled against:
apt version 4.6.0
NCurses version 5.6
libsigc++ version: 2.0.18
Ept support enabled.
Current library versions:
NCurses version: ncurses 5.6.20080405
cwidget version: 0.5.11
Apt version: 4.6.0
linux-gate.so.1 => (0xffffe000)
libapt-pkg-libc6.7-6.so.4.6 => /usr/lib/libapt-pkg-libc6.7-6.so.4.6
(0xb7ef8000)
libncursesw.so.5 => /lib/libncursesw.so.5 (0xb7ebc000)
libsigc-2.0.so.0 => /usr/lib/libsigc-2.0.so.0 (0xb7eb5000)
libcwidget.so.3 => /usr/lib/libcwidget.so.3 (0xb7dc5000)
libept.so.0 => /usr/lib/libept.so.0 (0xb7d4d000)
libxapian.so.15 => /usr/lib/libxapian.so.15 (0xb7bda000)
libz.so.1 => /usr/lib/libz.so.1 (0xb7bc5000)
libpthread.so.0 => /lib/i686/cmov/libpthread.so.0 (0xb7bad000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb7abf000)
libm.so.6 => /lib/i686/cmov/libm.so.6 (0xb7a9a000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb7a8d000)
libc.so.6 => /lib/i686/cmov/libc.so.6 (0xb793f000)
libutil.so.1 => /lib/i686/cmov/libutil.so.1 (0xb793b000)
libdl.so.2 => /lib/i686/cmov/libdl.so.2 (0xb7936000)
/lib/ld-linux.so.2 (0xb7fd9000)
Terminal: screen
$DISPLAY is set.
`which aptitude`: /usr/bin/aptitude
aptitude version information:
aptitude linkage:
-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (500, 'unstable'), (300, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.24-1-686 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages aptitude depends on:
ii apt [libapt-pkg-libc6. 0.7.11 Advanced front-end for dpkg
ii libc6 2.7-10 GNU C Library: Shared libraries
ii libcwidget3 0.5.11-1 high-level terminal interface libr
ii libept0 0.5.17 High-level library for managing De
ii libgcc1 1:4.3.0-3 GCC support library
ii libncursesw5 5.6+20080405-1 Shared libraries for terminal hand
ii libsigc++-2.0-0c2a 2.0.18-2 type-safe Signal Framework for C++
ii libstdc++6 4.3.0-3 The GNU Standard C++ Library v3
ii libxapian15 1.0.5-1 Search engine library
ii zlib1g 1:1.2.3.3.dfsg-12 compression library - runtime
Versions of packages aptitude recommends:
pn aptitude-doc-en | aptitude-do <none> (no description available)
ii libparse-debianchangelog-perl 1.1.1-2 parse Debian changelogs and output
-- no debconf information
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]