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

Bug#352967: xbase-clients: xclock -digital does not take -twentyfour into account and uses asctime() to get the string



Package: xbase-clients
Version: 6.9.0.dfsg.1-4
Severity: normal


xclock -digital -twentyfour displays the time using the LC_TIME
locale value, which just means that the -twentyfour option is
ignored. The issue does not happen in -brief mode.

By reading the source I would believe that the issue is in
Clock.c, function TimeString :

[...]
   else if (w->clock.twentyfour)
      return asctime (tm);
   else
[...]

asctime uses LC_ALL to determine the format, which means no guarantee
to have a 24 hours layout.

Shouldn't there be an strftime rather to have the 24hours format, ie
something like :

 "%a %b %d %H:%M:%S %Y"


-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.12.1MCAST
Locale: LANG=fr_FR@euro, LC_CTYPE=en_US (charmap=ISO-8859-1)

Versions of packages xbase-clients depends on:
ii  cpp                      4:4.0.2-2       The GNU C preprocessor (cpp)
ii  libc6                    2.3.5-13        GNU C Library: Shared libraries an
ii  libdmx1                  6.9.0.dfsg.1-4  Distributed Multihead X client lib
ii  libexpat1                1.95.8-3        XML parsing C library - runtime li
ii  libfontconfig1           2.3.2-1.1       generic font configuration library
ii  libfreetype6             2.1.7-2.4       FreeType 2 font engine, shared lib
ii  libfs6                   6.9.0.dfsg.1-4  X Font Server library
ii  libice6                  6.9.0.dfsg.1-4  Inter-Client Exchange library
ii  libpng12-0               1.2.8rel-5      PNG library - runtime
ii  libsm6                   6.9.0.dfsg.1-4  X Window System Session Management
ii  libx11-6                 6.9.0.dfsg.1-4  X Window System protocol client li
ii  libxau6                  6.9.0.dfsg.1-4  X Authentication library
ii  libxaw8                  6.9.0.dfsg.1-4  X Athena widget set library
ii  libxcursor1              1.1.3-1         X cursor management library
ii  libxext6                 6.9.0.dfsg.1-4  X Window System miscellaneous exte
ii  libxfixes3               6.9.0.dfsg.1-4  X Window System miscellaneous 'fix
ii  libxft2                  2.1.7-1         FreeType-based font drawing librar
ii  libxi6                   6.9.0.dfsg.1-4  X Window System Input extension li
ii  libxinerama1             6.9.0.dfsg.1-4  X Window System multi-head display
ii  libxkbfile1              6.9.0.dfsg.1-4  X Keyboard Extension file parsing 
ii  libxkbui1                6.9.0.dfsg.1-4  X Keyboard Extension user interfac
ii  libxmu6                  6.9.0.dfsg.1-4  X Window System miscellaneous util
ii  libxmuu1                 6.9.0.dfsg.1-4  lightweight X Window System miscel
ii  libxp6                   6.9.0.dfsg.1-4  X Window System printing extension
ii  libxpm4                  6.9.0.dfsg.1-4  X pixmap library
ii  libxrandr2               6.9.0.dfsg.1-4  X Window System Resize, Rotate and
ii  libxrender1              1:0.9.0.2-1     X Rendering Extension client libra
ii  libxss1                  6.9.0.dfsg.1-4  X Screen Saver client-side library
ii  libxt6                   6.9.0.dfsg.1-4  X Toolkit Intrinsics
ii  libxtrap6                6.9.0.dfsg.1-4  X Window System protocol-trapping 
ii  libxtst6                 6.9.0.dfsg.1-4  X Window System event recording an
ii  libxv1                   6.9.0.dfsg.1-4  X Window System video extension li
ii  libxxf86dga1             6.9.0.dfsg.1-4  X Direct Graphics Access extension
ii  libxxf86misc1            6.9.0.dfsg.1-4  X miscellaneous extensions library
ii  libxxf86vm1              6.9.0.dfsg.1-4  X Video Mode selection library
ii  xlibmesa-gl [libgl1]     6.9.0.dfsg.1-4  Mesa 3D graphics library [X.Org]
ii  xlibmesa-glu [libglu1]   4.3.0.dfsg.1-14 Mesa OpenGL utility library [XFree
ii  xlibs                    6.9.0.dfsg.1-4  X Window System client libraries m
ii  xlibs-data               6.9.0.dfsg.1-4  X Window System client data
ii  zlib1g                   1:1.2.3-9       compression library - runtime

xbase-clients recommends no packages.

-- no debconf information



Reply to: