Re: [AD] Untranslated string: ALLEGRO_WINDOW_CLOSE_MESSAGE

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


> Sure, try this one and apply if works.

Oops! I previously replied too quickly.

+         uconvert_toascii(get_config_string("[language]",
+                          "allegro_window_close_message",
+                          ALLEGRO_WINDOW_CLOSE_MESSAGE), tmp1),

There is a problem: get_config_string() expects passed strings to be in
U_CURRENT text encoding format, not in ASCII, contrary to get_config_text().
So "[language]" won't match anything if U_CURRENT==16-bit Unicode.

--
Eric Botcazou
ebotcazou@xxxxxxxxxx



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/