After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 488918 - gtkbuilder cannot resolve type in turkish locale
gtkbuilder cannot resolve type in turkish locale
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Class: GtkBuilder
2.12.x
Other All
: Normal critical
: ---
Assigned To: GtkBuilder maintainers
GtkBuilder maintainers
Depends on:
Blocks:
 
 
Reported: 2007-10-22 08:39 UTC by Sertaç Ö. Yıldız
Modified: 2007-10-22 09:17 UTC
See Also:
GNOME target: ---
GNOME version: 2.19/2.20



Description Sertaç Ö. Yıldız 2007-10-22 08:39:44 UTC
Steps to reproduce:
$ LANG=tr_TR.UTF-8 bug-buddy
Gtk-ERROR **: Invalid type: GtkImage
aborting...


Stack trace:
  • #0 __kernel_vsyscall
  • #1 raise
    from /lib/libc.so.6
  • #2 abort
    from /lib/libc.so.6
  • #3 IA__g_logv
    at gmessages.c line 497
  • #4 IA__g_log
    at gmessages.c line 517
  • #5 _gtk_builder_construct
    at gtkbuilder.c line 395
  • #6 builder_construct
    at gtkbuilderparser.c line 219
  • #7 end_element
    at gtkbuilderparser.c line 787
  • #8 IA__g_markup_parse_context_parse
    at gmarkup.c line 1604
  • #9 _gtk_builder_parser_parse_buffer
    at gtkbuilderparser.c line 957
  • #10 IA__gtk_builder_add_from_file
    at gtkbuilder.c line 657
  • #11 main
    at bug-buddy.c line 1701



Other information:
_gtk_builder_resolve_type_lazily function contains this line:

219       g_string_append_c (symbol_name, tolower (c));

which is not locale safe. It fails with Turkish (tr_TR.UTF-8) locale for types that contain 'I' (e.g. GtkImage).
Comment 1 Johan (not receiving bugmail) Dahlin 2007-10-22 09:17:37 UTC
2007-10-22  Johan Dahlin  <jdahlin@async.com.br>

	* gtk/gtkbuilder.c: Use gtk_ascii_tolower/toupper instead of the C 
	library variants. (#488918, Sertaç Ö. Yıldız)