diff options
author | Adam Borowski <kilobyte@angband.pl> | 2010-12-14 15:56:54 +0100 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2010-12-16 16:53:02 +0100 |
commit | 28b815a469419b7ab6ac7d88e7ce41aac34d83da (patch) | |
tree | 212289174f5b51699ef06df8e1533d15eac02e30 /crawl-ref/source/unicode.h | |
parent | 1e52b0fc52905ca92e10a42eafd8fce40e321ed6 (diff) | |
download | crawl-ref-28b815a469419b7ab6ac7d88e7ce41aac34d83da.tar.gz crawl-ref-28b815a469419b7ab6ac7d88e7ce41aac34d83da.zip |
Convert ofstream to fprintf() for stash dumps. Translate charsets.
Using ofstream requires huge hacks on Polish/Russian/etc Windows,
and is outright impossible on Vietnamese.
Diffstat (limited to 'crawl-ref/source/unicode.h')
-rw-r--r-- | crawl-ref/source/unicode.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crawl-ref/source/unicode.h b/crawl-ref/source/unicode.h index 75417c7c25..92600d4534 100644 --- a/crawl-ref/source/unicode.h +++ b/crawl-ref/source/unicode.h @@ -23,3 +23,4 @@ static inline std::string mb_to_utf8(const std::string &s) return mb_to_utf8(s.c_str()); } +#define OUTS(x) utf8_to_mb(x).c_str() |