Control: severity -1 wishlist

Dear Brian,

On  So 27 Apr 2014 02:56:15 CEST, brian m. carlson wrote:

Package: mate-screensaver
Version: 1.8.0-1
Severity: normal

mate-screensaver does not honor LC_TIME:

vauxhall ok % perl -pe 's/\0/\n/g' /proc/$(pidof mate-screensaver)/environ | sort | grep -E '^(LANG|LC_)'
  LANG=en_US.UTF-8
  LC_ADDRESS=en_US.UTF-8
  LC_COLLATE=en_US.UTF-8
  LC_CTYPE=en_US.UTF-8
  LC_IDENTIFICATION=en_US.UTF-8
  LC_MEASUREMENT=en_US.UTF-8
  LC_MESSAGES=en_US.UTF-8
  LC_MONETARY=en_US.UTF-8
  LC_NAME=en_US.UTF-8
  LC_NUMERIC=en_US.UTF-8
  LC_PAPER=en_US.UTF-8
  LC_TELEPHONE=en_US.UTF-8
  LC_TIME=POSIX

This results in it using a 12-hour format for the clock.  As I use UTC
on my computer, a 12-hour clock is not particularly useful (and is in
fact confusing) to me.  mate-screensaver should honor the LC_TIME
variable and use a 24-hour clock when LC_TIME is set to POSIX.

I have taken a look at your observed issue. The clock layout is handled via the i18n translation system underneath mate-screensaver. I presume that a POSIX locale is mapped to en_US.UTF-8 (though not sure), so the English translation scheme applies.

To make LC_TIME=POSIX and also LC_ALL=POSIX be interpreted correctly, you probably need to patch src/gs-lock-plug.c around line 304. [1]

My suggestion about this bug: I reduce it to wishlist, you start working on a patch and then the two of use try convincing upstream of accepting it.

Regards,
Mike

[1] https://github.com/mate-desktop/mate-screensaver/blob/master/src/gs-lock-plug.c#L304


--

DAS-NETZWERKTEAM
mike gabriel, herweg 7, 24357 fleckeby
fon: +49 (1520) 1976 148

GnuPG Key ID 0x25771B31
mail: [email protected], http://das-netzwerkteam.de

freeBusy:
https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.xfb

Attachment: pgphb8fn7le89.pgp
Description: Digitale PGP-Signatur

Reply via email to