[Geany-Devel] [geany/geany] d270e6: Parse compiler provided build date to use the translatable date format string

Colomban Wendling lists.ban at xxxxx
Sun Mar 17 18:51:36 UTC 2013


Le 17/03/2013 17:42, Colomban Wendling a écrit :
> Le 17/03/2013 17:17, Christian Dywan a écrit :
>> Branch:      refs/heads/master
>> Author:      Christian Dywan <christian at twotoasts.de>
>> Committer:   Enrico Tröger <enrico.troeger at uvena.de>
>> Date:        Sun, 17 Mar 2013 16:17:09 UTC
>> Commit:      d270e6c69082d114901af23b756a3375a5b5ce23
>>              https://github.com/geany/geany/commit/d270e6c69082d114901af23b756a3375a5b5ce23
>>
>> Log Message:
>> -----------
>> Parse compiler provided build date to use the translatable date format string
> 
> I have a system with LANG=fr_FR.UTF-8.
> 
> Opening the about dialog with LANG=C results in:
> 
> 
> (geany:23003): GLib-WARNING **:
> /tmp/buildd/glib2.0-2.33.12+really2.32.4/./glib/gdate.c:2523Error
> converting results of strftime to UTF-8: Invalid byte sequence in
> conversion input
> 
> 
> (geany:23003): GLib-WARNING **:
> /tmp/buildd/glib2.0-2.33.12+really2.32.4/./glib/gdate.c:2523Error
> converting results of strftime to UTF-8: Invalid byte sequence in
> conversion input
> 
> 
> (geany:23003): GLib-WARNING **:
> /tmp/buildd/glib2.0-2.33.12+really2.32.4/./glib/gdate.c:2523Error
> converting results of strftime to UTF-8: Invalid byte sequence in
> conversion input
> 
> 
> (geany:23003): GLib-WARNING **:
> /tmp/buildd/glib2.0-2.33.12+really2.32.4/./glib/gdate.c:2523Error
> converting results of strftime to UTF-8: Invalid byte sequence in
> conversion input
> 
> 
> (geany:23003): GLib-WARNING **:
> /tmp/buildd/glib2.0-2.33.12+really2.32.4/./glib/gdate.c:2523Error
> converting results of strftime to UTF-8: Invalid byte sequence in
> conversion input
> 
> 
> (geany:23003): GLib-WARNING **:
> /tmp/buildd/glib2.0-2.33.12+really2.32.4/./glib/gdate.c:2523Error
> converting results of strftime to UTF-8: Invalid byte sequence in
> conversion input

OK apparently if the LANG doesn't have encoding information
g_locale_to_utf8() assumes something not UTF-8 (I guess ASCII), and
since I didn't change LC_TIME, strftime() did output something the GLib
code couldn't handle (with UTF-8 I guess).  Setting LC_TIME=C fixes the
issue.

Not sure if we can to do something about it.

> And opening it without changing the LANG results in:
> 
> 
> (geany:23294): Gtk-WARNING **: Failed to set text from markup due to
> error parsing markup: Erreur à la ligne 1, caractère 70 : Codage UTF-8
> non valide dans le nom - « (construit le x\xc5\u0015\xc0\xff\u007f ou
> ultérieurement) » n'est pas valide
> 
> (geany:23294): Gtk-WARNING **: Failed to set text from markup due to
> error parsing markup: Erreur à la ligne 1, caractère 70 : Codage UTF-8
> non valide dans le nom - « (construit le x\xc5\u0015\xc0\xff\u007f ou
> ultérieurement) » n'est pas valide
> 
> (geany:23294): Gtk-WARNING **: Failed to set text from markup due to
> error parsing markup: Erreur à la ligne 1, caractère 70 : Codage UTF-8
> non valide dans le nom - « (construit le x\xc5\u0015\xc0\xff\u007f ou
> ultérieurement) » n'est pas valide

OK, this one was fixed like I mentioned in the other mail.


More information about the Devel mailing list