Bug#313539: libgtk2.0-0: GtkCalendar doesn't respond properlyto locale change for week starting day.

Loïc Minier Loïc Minier <lool@dooz.org>, 313539@bugs.debian.org
Thu, 16 Jun 2005 22:48:17 +0200


--rwEMma7ioTxnRzrJ
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

        Hi,

On Thu, Jun 16, 2005, Sebastien Bacher wrote:
> What does "ldd ./calendar", "env", "locale" say? Are you sure you
> generated the appropriate locales?

 (Thought of the same questions as Seb.)

 The attached program mimics Gtk's retrieval of locale information,
 could you please paste the output of this program called as follow:
 bee% ./foo
 week_start: 1
 ABDAY_1 (fr_FR): dim
 bee% LC_ALL=3DC ./foo
 week_start: 0
 ABDAY_1 (C): Sun
 bee% LC_ALL=3Dfr_FR ./foo
 week_start: 1
 ABDAY_1 (fr_FR): dim

 (build with gcc -o foo foo.c)

--=20
Lo=EFc Minier <lool@dooz.org>
"Neutral President: I have no strong feelings one way or the other."

--rwEMma7ioTxnRzrJ
Content-Type: text/x-csrc; charset=us-ascii
Content-Disposition: attachment; filename="foo.c"

#include <locale.h>
#include <langinfo.h>

int main(void) {
    char * week_start;
    setlocale(LC_ALL, "");
    week_start = nl_langinfo(_NL_TIME_FIRST_WEEKDAY);
    printf("week_start: %i\n", *((unsigned char *) week_start) % 7);
    printf("ABDAY_1 (%s): %s\n",
            setlocale(LC_TIME, NULL),
            nl_langinfo (ABDAY_1));
}

--rwEMma7ioTxnRzrJ--