diff options
author | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-10-04 10:28:54 +0000 |
---|---|---|
committer | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-10-04 10:28:54 +0000 |
commit | 1f97cbc369b32cf86dda02a148b29d8696e2906c (patch) | |
tree | d15ed7ad50cbfe07cef629e188cf08149ce4810c /crawl-ref/source/libunix.cc | |
parent | 257792305410f3ee7ff4b7abddb51ecae3d63c14 (diff) | |
download | crawl-ref-1f97cbc369b32cf86dda02a148b29d8696e2906c.tar.gz crawl-ref-1f97cbc369b32cf86dda02a148b29d8696e2906c.zip |
Unicode support tweak: always set locale to what's specified in UNICODE_LOCALE, defaulting to en_US.UTF-8.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2322 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/libunix.cc')
-rw-r--r-- | crawl-ref/source/libunix.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/libunix.cc b/crawl-ref/source/libunix.cc index 2349c12f05..1f8f1d67f9 100644 --- a/crawl-ref/source/libunix.cc +++ b/crawl-ref/source/libunix.cc @@ -217,7 +217,7 @@ static void termio_init() tcsetattr(0, TCSAFLUSH, &game_term); #ifdef UNICODE_GLYPHS - if ((crawl_state.unicode_ok = !!setlocale(LC_ALL, ""))) + if ((crawl_state.unicode_ok = !!setlocale(LC_ALL, UNICODE_LOCALE))) { crawl_state.glyph2strfn = unix_glyph2string; crawl_state.multibyte_strlen = unix_multibyte_strlen; |