summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/makefile.unix
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/makefile.unix
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/makefile.unix')
-rw-r--r--crawl-ref/source/makefile.unix9
1 files changed, 9 insertions, 0 deletions
diff --git a/crawl-ref/source/makefile.unix b/crawl-ref/source/makefile.unix
index f8211891d8..1df5f96ba7 100644
--- a/crawl-ref/source/makefile.unix
+++ b/crawl-ref/source/makefile.unix
@@ -21,6 +21,11 @@ OS_TYPE = UNIX
# libncursesw available.
UNICODE_GLYPHS = n
+# If you're using UNICODE_GLYPHS=y, and have a preferred Unicode
+# (UTF-8) locale you want Crawl to use, you can set it here. The
+# default is en_US.UTF-8.
+UNICODE_LOCALE =
+
# If you have lex and yacc, set DOYACC to y (lowercase y).
DOYACC := y
@@ -54,6 +59,10 @@ INCLUDES = -I/usr/include/ncursesw
LIBCURS = ncursesw
EXTRA_FLAGS += -DUNICODE_GLYPHS
+ifneq ($(UNICODE_LOCALE),)
+EXTRA_FLAGS += -DUNICODE_LOCALE=\"$(UNICODE_LOCALE)\"
+endif
+
# The standard ncurses library also supports Unicode on Mac OS/Darwin.
ifeq ($(shell uname),Darwin)
LIBCURS = ncurses