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

Bug#197867: marked as done (Subject: libcupsys2: ppdOpen does not preserve locale)

Your message dated Fri, 07 Jul 2006 00:07:53 +0900
with message-id <20060706150753.AFB691A7869@mail.topstudio.co.jp>
and subject line libcupsys2: ppdOpen does not preserve locale
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: libcupsys2
Version: 1.1.19final-1
Severity: normal
Tags: upstream

ppdOpen does not preserve the locale (LC_NUMERIC). Apparently it tries
to preserve the locale using 
char *oldlocale;
oldlocale = setlocale(LC_NUMERIC, NULL);
do stuff
setlocale(LC_NUMERIC, oldlocale);

when it should use
char *oldlocale;
oldlocale = g_strdup(setlocale(LC_NUMERIC, NULL));
do stuff
setlocale(LC_NUMERIC, oldlocale);
g_free (oldlocale);

In the former case oldlocale may change between the 2 invocations of

See http://bugzilla.gnome.org/show_bug.cgi?id=115409 for a serious
consequence of that bug.

-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux kirkman 2.4.20-1-686 #1 Sat Mar 22 13:16:21 EST 2003 i686
Locale: LANG=en_CA.ISO-8859-1, LC_CTYPE=en_CA.ISO-8859-1

Versions of packages libcupsys2 depends on:
ii  libc6                         2.3.1-17   GNU C Library: Shared
libraries an
ii  libgnutls5                    0.8.6-4    GNU TLS library - runtime

-- no debconf information

--- End Message ---
--- Begin Message ---
Version: 1.2.1-1
tags 197867 + fixed

At least since 1.2.1, CUPS ppdOpen doesn't modify LC_NUMERIC.

CUPS 1.2 series has new internationalization framework is better
than old 1.1 series.

Kenshi Muto

--- End Message ---

Reply to: