summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/AppHdr.h
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-10-04 10:28:54 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-10-04 10:28:54 +0000
commit1f97cbc369b32cf86dda02a148b29d8696e2906c (patch)
treed15ed7ad50cbfe07cef629e188cf08149ce4810c /crawl-ref/source/AppHdr.h
parent257792305410f3ee7ff4b7abddb51ecae3d63c14 (diff)
downloadcrawl-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/AppHdr.h')
-rw-r--r--crawl-ref/source/AppHdr.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/crawl-ref/source/AppHdr.h b/crawl-ref/source/AppHdr.h
index 115a51186d..64440ba36c 100644
--- a/crawl-ref/source/AppHdr.h
+++ b/crawl-ref/source/AppHdr.h
@@ -259,6 +259,10 @@
#error You can use either REGEX_POSIX or REGEX_PCRE, or neither, but not both.
#endif
+#if defined(UNICODE_GLYPHS) && !defined(UNICODE_LOCALE)
+#define UNICODE_LOCALE "en_US.UTF-8"
+#endif
+
// =========================================================================
// Debugging Defines
// =========================================================================