diff options
Diffstat (limited to 'crawl-ref/source/makefile.unix')
-rw-r--r-- | crawl-ref/source/makefile.unix | 9 |
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 |