Bug#726125: wmtime: broken date display

2013-10-15 Thread yuri . nefedov

Package: wmtime
Followup-For: Bug #726125

 The real problem is that wmtime try to transliterate an
 abbreviations for the day of week and months with libiconv.
 But iconv has limited support for transliteration
 and can not do it for many languages.
 For example:
 > echo "Вс" | iconv -f UTF8 -t ASCII//TRANSLIT - 
??


 This is Russian, and I would expect "Vs".
 There is more advanced tool "konwert" and it works perfectly
 > echo "Вс" | konwert UTF8-ascii 
Vs

 but it is not obvious how to connect it with wmtime.
 Probably the old idea to keep possible abbreviations
 in /use/share/wmtime/"language" is not bad at all.

 As a simple solution I would prefer to have additional
 flag to switch off any attempt to transliterate and
 use English names.

 The patches (rather simple) are in the attachment.

Regards, Yuri

-- System Information:
Debian Release: jessie/sid
  APT prefers testing
  APT policy: (990, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.10-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages wmtime depends on:
ii  libc6 2.17-93
ii  libx11-6  2:1.6.2-1
ii  libxext6  2:1.3.2-1
ii  libxpm4   1:3.5.10-1

wmtime recommends no packages.

wmtime suggests no packages.

-- no debconf information--- ../wmtime-1.0b2/wmtime/wmtime.1 2013-10-15 14:05:44.0 +0400
+++ ./wmtime.1  2013-10-15 14:05:25.526108646 +0400
@@ -65,6 +65,11 @@
 .IR X(7x) .
 
 .TP
+.BR \-l
+Disables the locale support and use English abbreviations for
+the day of week and months. 
+
+.TP
 .BR \-n , \ \-noseconds
 Disables the second hand.
 
--- ../wmtime-1.0b2/wmtime/wmtime.c 2013-10-15 14:05:44.0 +0400
+++ ./wmtime.c  2013-10-15 14:05:25.546108815 +0400
@@ -108,12 +108,13 @@
 void printversion(void);
 
 void wmtime_routine(int, char **);
-void get_lang();
+void get_lang(void);
 
 int main(int argc, char *argv[]) {
 
int i;
char*name = argv[0];
+   int use_lang = 1;
 
for (i=1; i

Bug#726125: wmtime: broken date display

2013-10-13 Thread Torrance, Douglas
On 10/12/2013 02:38 PM, Nobuhiro Ban wrote:
> Yes, it seems very reasonable behavior. Regards, Nobuhiro 
I've updated the package with this behavior.  It should appear in Debian
soon.




--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#726125: wmtime: broken date display

2013-10-12 Thread Nobuhiro Ban
2013/10/13 Torrance, Douglas :
> What behavior would you prefer?  Should wmtime default to the English
> names when non-Latin characters are encountered?

Yes, it seems very reasonable behavior.


Regards,
Nobuhiro


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#726125: wmtime: broken date display

2013-10-12 Thread Torrance, Douglas
Thanks for the bug report!

Unfortunately, wmtime only has support for the 26 characters in the
Latin alphabet.  It reads them directly from the file
wmtime/wmtime-master.xpm in the source tree.

What behavior would you prefer?  Should wmtime default to the English
names when non-Latin characters are encountered?

On 10/12/2013 11:15 AM, Nobuhiro Ban wrote:
> Package: wmtime
> Version: 1.0b2-11
> Severity: important
>
> Dear Maintainer,
>
> After updating wmtime to 1.0b2-11, its date-display is broken.
> It only shows 2nd char of weekday-name and day-of-month,
> i.e. it shows like " A|12-   " instead of "SA|12-OCT".
>
> See attached screenshot image:
>   * (0,0)-(63,63): bad (" A|12-   ")
>   * (0,64)-(63,127): good ("SA|12-OCT")
>
> Workaround:
>   (a) run with LANG=C
> or
>   (b) rebuild without debian/patches/wmtime-l10n.diff,
> it shows collect date.
>
> Additional info:
>> $ echo $LANG
>> ja_JP.UTF-8
>> $ date +'%^a|%d-%^b'
>> 土|12-10月
>> $ LANG=C date +'%^a|%d-%^b'
>> SAT|12-OCT
>
> Regards,
> Nobuhiro
>
>
>
> -- System Information:
> Debian Release: jessie/sid
>   APT prefers stable-updates
>   APT policy: (500, 'stable-updates'), (500, 'testing'), (500,
> 'stable'), (500, 'oldstable')
> Architecture: amd64 (x86_64)
>
> Kernel: Linux 3.2.0-4-amd64 (SMP w/4 CPU cores)
> Locale: LANG=ja_JP.UTF-8, LC_CTYPE=ja_JP.UTF-8 (charmap=UTF-8)
> Shell: /bin/sh linked to /bin/dash
>
> Versions of packages wmtime depends on:
> ii  libc6 2.17-93
> ii  libx11-6  2:1.6.1-1
> ii  libxext6  2:1.3.2-1
> ii  libxpm4   1:3.5.10-1
>
> wmtime recommends no packages.
>
> wmtime suggests no packages.
>
> -- no debconf information



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#726125: wmtime: broken date display

2013-10-12 Thread Nobuhiro Ban
Package: wmtime
Version: 1.0b2-11
Severity: important

Dear Maintainer,

After updating wmtime to 1.0b2-11, its date-display is broken.
It only shows 2nd char of weekday-name and day-of-month,
i.e. it shows like " A|12-   " instead of "SA|12-OCT".

See attached screenshot image:
  * (0,0)-(63,63): bad (" A|12-   ")
  * (0,64)-(63,127): good ("SA|12-OCT")

Workaround:
  (a) run with LANG=C
or
  (b) rebuild without debian/patches/wmtime-l10n.diff,
it shows collect date.

Additional info:
>$ echo $LANG
>ja_JP.UTF-8
>$ date +'%^a|%d-%^b'
>土|12-10月
>$ LANG=C date +'%^a|%d-%^b'
>SAT|12-OCT


Regards,
Nobuhiro



-- System Information:
Debian Release: jessie/sid
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'testing'), (500,
'stable'), (500, 'oldstable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=ja_JP.UTF-8, LC_CTYPE=ja_JP.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages wmtime depends on:
ii  libc6 2.17-93
ii  libx11-6  2:1.6.1-1
ii  libxext6  2:1.3.2-1
ii  libxpm4   1:3.5.10-1

wmtime recommends no packages.

wmtime suggests no packages.

-- no debconf information
<>