diff options
author | Adam Borowski <kilobyte@angband.pl> | 2010-09-26 02:44:06 +0200 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2010-09-26 02:44:06 +0200 |
commit | 8083632f65832778889f5f5ec1a18f06f8caac40 (patch) | |
tree | be653b81803cf73acfe41a56e58e58cc3628fea7 /crawl-ref/source/unicode.h | |
parent | 1c07180018c8183adbfa4618d59d55b451a2e35e (diff) | |
download | crawl-ref-8083632f65832778889f5f5ec1a18f06f8caac40.tar.gz crawl-ref-8083632f65832778889f5f5ec1a18f06f8caac40.zip |
Always use Unicode values for glyphs. Always use ncursesw on Unix console.
CSET_IBM and CSET_DEC are now merely presets and don't change the I/O encoding.
Doing I/O using any encoding other than the one configured using LANG/LC_* is
just wrong and no well-behaving program should do that.
This does require changes on CAO/CDO, but they would fix problems with ttyrec
and spectating as well.
To fix: ncursesw replaces unrepresentable characters with spaces, we'll have
to replace them by hand.
Diffstat (limited to 'crawl-ref/source/unicode.h')
-rw-r--r-- | crawl-ref/source/unicode.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/crawl-ref/source/unicode.h b/crawl-ref/source/unicode.h index f576e2a788..75417c7c25 100644 --- a/crawl-ref/source/unicode.h +++ b/crawl-ref/source/unicode.h @@ -5,8 +5,6 @@ * Written by: Adam Borowski */ -typedef unsigned int ucs_t; - int wctoutf8(char *d, ucs_t s); int utf8towc(ucs_t *d, const char *s); #ifdef TARGET_OS_WINDOWS |