Bug#117000: marked as done (gdm should translate strftime formats with LC_TIME)

Debian Bug Tracking System owner@bugs.debian.org
Thu, 08 Jul 2004 03:03:06 -0700


Your message dated Thu, 08 Jul 2004 18:46:54 +0900
with message-id <40ED180E.4030803@glandium.org>
and subject line This is fixed.
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)

--------------------------------------
Received: (at submit) by bugs.debian.org; 25 Oct 2001 06:07:36 +0000
>From kon@iki.fi Thu Oct 25 01:07:36 2001
Return-path: <kon@iki.fi>
Received: from leka.yhteys.mtv3.fi (leka.almamedia.fi) [62.236.224.129] 
	by master.debian.org with smtp (Exim 3.12 1 (Debian))
	id 15wdg0-00079X-00; Thu, 25 Oct 2001 01:07:36 -0500
Received: (qmail 22850 invoked from network); 25 Oct 2001 06:07:32 -0000
Received: from dyn-e-234.yhteys.mtv3.fi (HELO Astalo.Niemitalo.local) (mail@62.236.229.234)
  by leka.yhteys.mtv3.fi with SMTP; 25 Oct 2001 06:07:32 -0000
Received: from kalle by Astalo.Niemitalo.local with local (Exim 3.32 #1 (Debian))
	id 15wdfu-0003LT-00; Thu, 25 Oct 2001 09:07:30 +0300
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: gdm should translate strftime formats with LC_TIME
Keywords: gdm,gettext,strftime,LC_TIME,LC_MESSAGES,Finnish,fi_FI,cs_CZ,en_US
References: <E15vkHD-00087r-00@auric.debian.org>
X-Accept-Language: fi;q=1.0, en;q=0.9, sv;q=0.5, de;q=0.1
X-URL: http://www.iki.fi/kon/
From: Kalle Olavi Niemitalo <kon@iki.fi>
Date: 25 Oct 2001 09:07:30 +0300
Message-ID: <87bsiw6yn1.fsf@Astalo.y2000.kon.iki.fi>
Lines: 180
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
Sender: Kalle Olavi Niemitalo <kon@iki.fi>
Delivered-To: submit@bugs.debian.org

Package: gdm
Version: 2.2.4.3-1
Severity: wishlist

Ryan Murray <rmurray@debian.org> writes:

>    * New upstream release (closes: #113822, #115543)

Cool... but now that I took a closer look on the code, I realized
that gdm puts the strftime format specs through gettext so the
change should perhaps have been made in fi.po instead.  Because
"%p" is empty in the fi_FI locale (at least with the outdated
glibc have), it would make sense for fi.po not to use it.  This
would save Finnish sysadmins from the trouble of noticing the
problem and reconfiguring gdm.

OTOH, gettext() uses LC_MESSAGES which is not really appropriate
here; if I run gdm with LC_MESSAGES=3Den_US and LC_TIME=3Dcs_CZ
(cs.po uses a 24-hour clock), I think the clock should use the
Czech format and completely ignore the en_US.  The current code
gets the en_US (default) strftime format, which uses "%p", and
then strftime formats it using the cs_CZ locale where "%p"
expands to nothing.

Perhaps the dcgettext function would be useful here.  It seems,
though, that using it would require compiling the strftime formats
into a separate .mo file in a separate LC_TIME directory, which
may be difficult to do.

-- System Information
Debian Release: testing/unstable
Kernel Version: Linux Astalo 2.4.12-kon.astalo.1 #1 pe loka=A0=A0 12 07:15:=
47 EEST 2001 i686 unknown

Versions of the packages gdm depends on:
ii  adduser        3.42           Add and remove users and groups to resp. =
fro
ii  debconf        1.0.00         Debian configuration management system
ii  dpkg           1.9.16         Package maintenance system for Debian
ii  gdk-imlib1     1.9.10-3       Gdk-Imlib is an imaging library for use w=
ith
ii  libart2        1.4.1.2-2      The Gnome canvas widget
ii  libaudiofile0  0.2.1-0.1      The Audiofile Library
ii  libc6          2.2.3-9        GNU C Library: Shared libraries and Timez=
one
ii  libdb3         3.2.9-5.kon.1  Berkeley v3 Database Libraries [runtime]
ii  libesd-alsa0   0.2.22-6       Enlightened Sound Daemon (ALSA) - Shared =
lib
ii  libgdk-pixbuf2 0.11.0-2       The GdkPixBuf library.
ii  libglade-gnome 0.16-2.kon.1   Library to load .glade files at runtime (=
Gno
ii  libglade0      0.16-2.kon.1   Library to load .glade files at runtime.
ii  libglib1.2     1.2.10-1       The GLib library of C routines
ii  libgnomesuppor 1.4.1.2-2      The Gnome libraries (Support libraries)
ii  libgnomeui32   1.4.1.2-2      The Gnome libraries (User Interface)
ii  libgnome32     1.4.1.2-2      The Gnome libraries
ii  libgtk1.2      1.2.10-1       The GIMP Toolkit set of widgets for X
ii  libpam-modules 0.72-16        Pluggable Authentication Modules for PAM
ii  libpam0g       0.72-16        Pluggable Authentication Modules library
ii  libwrap0       7.6-5          Wietse Venema's TCP wrappers library
ii  libxml1        1.8.11-1       GNOME XML library
ii  scrollkeeper   0.2-2          A free electronic cataloging system for d=
ocu
ii  xlibs          4.0.3-2        X Window System client libraries
ii  zlib1g         1.1.3-12       compression library - runtime
rc  libesd0        0.2.22-6       Enlightened Sound Daemon - Shared librari=
es

--- Begin /etc/gdm/Init/Default (modified conffile)
#!/bin/sh
/usr/bin/X11/xmodmap -e 'pointer =3D 3 2 1 7 6 4 5'

--- End /etc/gdm/Init/Default

--- Begin /etc/gdm/gdm.conf (modified conffile)
[daemon]
AutomaticLoginEnable=3Dfalse
AutomaticLogin=3D
AlwaysRestartServer=3Dfalse
Configurator=3D/usr/bin/gdmconfig --disable-sound --disable-crash-dialog
GnomeDefaultSession=3D/etc/gnome/default.session
Chooser=3D/usr/bin/gdmchooser --disable-sound --disable-crash-dialog
DefaultPath=3D/usr/bin:/bin:/usr/bin/X11:/usr/games
DisplayInitDir=3D/etc/gdm/Init
Greeter=3D/usr/bin/gdmlogin --disable-sound --disable-crash-dialog
Group=3Dgdm
HaltCommand=3D/sbin/shutdown -h now "Halted from gdm menu."
KillInitClients=3Dtrue
LogDir=3D/var/log/gdm
PidFile=3D/var/run/gdm.pid
PostSessionScriptDir=3D/etc/gdm/PostSession/
PreSessionScriptDir=3D/etc/gdm/PreSession/
FailsafeXServer=3D
XKeepsCrashing=3D/etc/gdm/XKeepsCrashing
XKeepsCrashingConfigurators=3D/usr/bin/X11/XF86Setup /usr/bin/X11/Xconfigur=
ator
RebootCommand=3D/sbin/shutdown -r now "Rebooted from gdm menu."
RootPath=3D/sbin:/bin:/usr/sbin:/usr/bin:/usr/bin/X11
ServAuthDir=3D/var/lib/gdm
SessionDir=3D/etc/gdm/Sessions/
SuspendCommand=3D/usr/bin/apm --suspend
User=3Dgdm
UserAuthDir=3D
UserAuthFBDir=3D/tmp
UserAuthFile=3D.Xauthority
TimedLoginEnable=3Dfalse
TimedLogin=3D
TimedLoginDelay=3D30
StandardXServer=3D/usr/bin/X11/X
FlexibleXServers=3D5
Xnest=3D/usr/bin/X11/Xnest -name Xnest
[security]
AllowRoot=3Dfalse
AllowRemoteRoot=3Dfalse
AllowRemoteAutoLogin=3Dfalse
RelaxPermissions=3D0
RetryDelay=3D3
UserMaxFile=3D65536
SessionMaxFile=3D524288
VerboseAuth=3Dtrue
[xdmcp]
Enable=3Dfalse
HonorIndirect=3Dtrue
MaxPending=3D4
MaxPendingIndirect=3D4
MaxSessions=3D16
MaxWait=3D15
MaxWaitIndirect=3D15
DisplaysPerHost=3D1
Port=3D177
Willing=3D/etc/gdm/Xwilling
PingInterval=3D5
[gui]
GtkRC=3D/usr/share/themes/Default/gtk/gtkrc
MaxIconWidth=3D128
MaxIconHeight=3D128
[greeter]
TitleBar=3Dfalse
ConfigAvailable=3Dtrue
Browser=3Dtrue
DefaultFace=3D/usr/share/pixmaps/nobody.png
DefaultLocale=3Dcs_CZ
Exclude=3Dbin,daemon,adm,lp,sync,shutdown,halt,mail,news,uucp,operator,nobo=
dy,alias,backup,games,gnats,irc,list,majordom,man,msql,postgres,proxy,qmail=
d,qmaill,qmailp,qmailq,qmailr,qmails,sys,www-data,fetchmail,xpilots,ftpadm,=
sashroot,build,src,kalle2
Font=3D-*-helvetica-bold-r-normal-*-*-180-*-*-*-*-*-*-*
GlobalFaceDir=3D/usr/share/faces/
Icon=3D/usr/share/pixmaps/gdm.xpm
LocaleFile=3D/etc/locale.alias
Logo=3D/usr/share/pixmaps/gdmDebianLogo.xpm
Quiver=3Dtrue
SystemMenu=3Dtrue
Welcome=3DWelcome to %n
Welcome[es]=3DBienvenido a %n
Welcome[de]=3DWillkommen auf %n
Welcome[fr]=3DBienvenue sur %n
Welcome[cs]=3DV=EDtejte na %n
Welcome[no]=3DVelkommen til %n
Welcome[nn]=3DVelkomen til %n
Welcome[ru]=3D=E4=CF=C2=D2=CF =D0=CF=D6=C1=CC=CF=D7=C1=D4=D8 =CE=C1 %n
LockPosition=3Dfalse
SetPosition=3Dfalse
PositionX=3D0
PositionY=3D0
XineramaScreen=3D0
BackgroundType=3D1
BackgroundImage=3D/usr/local/share/backgrounds/cm-lispm.jpg
BackgroundScaleToFit=3Dtrue
BackgroundColor=3D#007777
BackgroundRemoteOnlyColor=3Dtrue
BackgroundProgram=3D
ShowGnomeChooserSession=3Dtrue
ShowGnomeFailsafeSession=3Dtrue
ShowXtermFailsafeSession=3Dtrue
Use24Clock=3Dfalse
[chooser]
DefaultHostImg=3D/usr/share/pixmaps/nohost.png
HostImageDir=3D/usr/share/hosts/
ScanTime=3D3
Hosts=3D
Broadcast=3Dtrue
[debug]
Enable=3Dfalse
[server-Standard]
name=3DStandard server
command=3D/usr/bin/X11/X -deferglyphs 16 -nolisten tcp
flexible=3Dtrue
[servers]
0=3DStandard -dpi 100 vt7

--- End /etc/gdm/gdm.conf

---------------------------------------
Received: (at 247092-done) by bugs.debian.org; 8 Jul 2004 09:46:41 +0000
>From mh@glandium.org Thu Jul 08 02:46:41 2004
Return-path: <mh@glandium.org>
Received: from host-202-215-53-68-b-base.svips.gol.ne.jp (glandium.org) [202.215.53.68] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1BiVUG-00061m-00; Thu, 08 Jul 2004 02:46:41 -0700
Received: from localhost ([127.0.0.1])
	by glandium.org with esmtp (Exim 3.36 #1 (Debian))
	id 1BiVUV-0005EK-00
	for <247092-done@bugs.debian.org>; Thu, 08 Jul 2004 18:46:55 +0900
Message-ID: <40ED180E.4030803@glandium.org>
Date: Thu, 08 Jul 2004 18:46:54 +0900
From: Mike Hommey <mh@glandium.org>
User-Agent: Mozilla Thunderbird 0.6 (X11/20040605)
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: 247092-done@bugs.debian.org
Subject: This is fixed.
X-Enigmail-Version: 0.83.6.0
X-Enigmail-Supports: pgp-inline, pgp-mime
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Delivered-To: 247092-done@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-3.0 required=4.0 tests=BAYES_00 autolearn=no 
	version=2.60-bugs.debian.org_2004_03_25
X-Spam-Level: 

The date is now properly displayed in the latest version.

Closing the bug, then.

Thanks

Mike