Bound gettext to UTF-8 domain to allow UTF8 font rendering, but still support

non-UTF-8 translations (like Spanish) to come out right.  Thanks to many!
This commit is contained in:
William Kendrick 2003-07-19 11:20:23 +00:00
parent a75ee2d018
commit cf5270f5ce
2 changed files with 7 additions and 1 deletions

View file

@ -34,6 +34,11 @@ http://www.newbreedsoftware.com/tuxpaint/
Fonts copyright the Free Software Foundation.
Thanks to Mantas Kriauciunas <monte@mail.lt> for the tip.
* Fixed UTF-8 related bug where Lithuanian wouldn't display if using
'TTF_RenderText...', but Spanish wouldn't display if using
'TTF_RenderUTF8...'. Thanks to Mantas Kriauciunas, Robert Glowczynski,
John Popplewell and Karl Ove Hufthammer.
2003.Jun.17 (0.9.11)
* Windows bugfixes.

View file

@ -216,7 +216,7 @@ void win32_perror(const char *str)
#define clamp(lo,value,hi) (min(max(value,lo),hi))
#define RENDER_TEXT TTF_RenderText_Blended
#define RENDER_TEXT TTF_RenderUTF8_Blended
/* Possible languages: */
@ -3948,6 +3948,7 @@ void setup(int argc, char * argv[])
bindtextdomain("tuxpaint", LOCALEDIR);
bind_textdomain_codeset("tuxpaint", "UTF8");
textdomain("tuxpaint");