summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/unicode.h
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2010-12-14 15:56:54 +0100
committerAdam Borowski <kilobyte@angband.pl>2010-12-16 16:53:02 +0100
commit28b815a469419b7ab6ac7d88e7ce41aac34d83da (patch)
tree212289174f5b51699ef06df8e1533d15eac02e30 /crawl-ref/source/unicode.h
parent1e52b0fc52905ca92e10a42eafd8fce40e321ed6 (diff)
downloadcrawl-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.h1
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()