[Nautilus-list] eel and locale



Hi!

I try to compile eel on my computer with the French locale:
$ export | grep fr
declare -x LANG="fr"
declare -x LANGUAGE="fr_FR:fr"
declare -x LC_COLLATE="fr_FR"
declare -x LC_CTYPE="fr_FR"
declare -x LC_MESSAGES="fr_FR"
declare -x LC_MONETARY="fr_FR"
declare -x LC_NUMERIC="fr_FR"
declare -x LC_TIME="fr_FR"
declare -x RPM_INSTALL_LANG="fr_FR:fr"

And with those env variables, eel compilation stops on the following
error:
make[2]: Entre dans le répertoire `/tmp/eel-1.0.1/eel'
running eel_self_check_art_extensions
running eel_self_check_background
running eel_self_check_canvas_rect
running eel_self_check_enumeration
running eel_self_check_font_manager
running eel_self_check_gdk_extensions
running eel_self_check_gdk_font_extensions
running eel_self_check_gdk_pixbuf_extensions
running eel_self_check_glib_extensions

FAIL: check failed in eel-glib-extensions.c, line 1475
      evaluated: test_strftime ("%m/%d/%y, %I:%M %p", 2000, 1, 1, 1, 0, 0)
       expected: 01/01/00, 01:00
            got: 01/01/00, 01:00
FAIL: check failed in eel-glib-extensions.c, line 1476
      evaluated: test_strftime ("%-m/%-d/%y, %-I:%M %p", 2000, 1, 1, 1, 0,
0)
       expected: 1/1/00, 1:00
            got: 1/1/00, 1:00
FAIL: check failed in eel-glib-extensions.c, line 1477
      evaluated: test_strftime ("%_m/%_d/%y, %_I:%M %p", 2000, 1, 1, 1, 0,
0)
       expected:  1/ 1/00,  1:00
            got:  1/ 1/00,  1:00
running eel_self_check_preferences
running eel_self_check_scalable_font
running eel_self_check_smooth_text_layout_cache
running eel_self_check_string
running eel_self_check_string_list
running eel_self_check_vfs_extensions

FAIL: check-eel
===================
1 of 1 tests failed
===================




Notice the difference between the 'expected' and 'got' lines: one ends
with ' ' and the other not.

The reason is that in France, we use 24h date format, so we have no AM and
PM. "%p" returns nothing.
I got eel compile with removing all those env variables, or in other
words, switching back to C locale.

I hope that you can do something so that people like me who speak with 24h
format do not have the problem any more.
Thanks for eel, thanks for nautilus guys!

Yves



-- 
- Homepage   - http://ymettier.free.fr            -
- GMemLogger - http://gmemlogger.sourceforge.net  -
- GTKtalog   - http://gtktalog.sourceforge.net    -







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