diff options
author | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-11-20 12:19:31 +0000 |
---|---|---|
committer | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-11-20 12:19:31 +0000 |
commit | 9ff31d52f2dad36c684c3458c35f0666a0fb28e4 (patch) | |
tree | d74cb4ba9591eb4e904d7940c6405d6cc8321fd9 /crawl-ref/source/stuff.cc | |
parent | 1c9f524503622db5774b18a6fca37b71739a5946 (diff) | |
download | crawl-ref-9ff31d52f2dad36c684c3458c35f0666a0fb28e4.tar.gz crawl-ref-9ff31d52f2dad36c684c3458c35f0666a0fb28e4.zip |
Fall back to ASCII if Unicode locale is unavailable (Guus). Also queue up startup error messages and display them before the newgame screen instead of emitting them to stderr.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2882 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/stuff.cc')
-rw-r--r-- | crawl-ref/source/stuff.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/crawl-ref/source/stuff.cc b/crawl-ref/source/stuff.cc index b957f96a93..9e7f2a0b3e 100644 --- a/crawl-ref/source/stuff.cc +++ b/crawl-ref/source/stuff.cc @@ -444,9 +444,11 @@ void cio_init() crawl_view.init_geometry(); if (Options.char_set == CSET_UNICODE && !crawl_state.unicode_ok) - end(1, false, - "Unicode glyphs are not available, please change your " - "char_set option"); + { + crawl_state.add_startup_error( + "Unicode glyphs are not available, falling back to ASCII."); + Options.char_set = CSET_ASCII; + } } void cio_cleanup() |