summaryrefslogtreecommitdiff
path: root/src/m_misc.h
diff options
context:
space:
mode:
authorSimon Howard2012-02-04 23:05:42 +0000
committerSimon Howard2012-02-04 23:05:42 +0000
commit920ffea9b631e712ff0826911db01a76edbe7521 (patch)
treef4fef93bde165c650a3a61ac8cee4a90876d7df1 /src/m_misc.h
parentc6b8f1163708db85251daac24b2ffa6bea24a72a (diff)
downloadchocolate-doom-920ffea9b631e712ff0826911db01a76edbe7521.tar.gz
chocolate-doom-920ffea9b631e712ff0826911db01a76edbe7521.tar.bz2
chocolate-doom-920ffea9b631e712ff0826911db01a76edbe7521.zip
On Windows, convert the USER and USERNAME environment variables from OEM
codepage to UTF-8 encoding. This should fix the case where the user has a username that includes non-ASCII characters (thanks Alexandre Xavier). Subversion-branch: /trunk/chocolate-doom Subversion-revision: 2495
Diffstat (limited to 'src/m_misc.h')
-rw-r--r--src/m_misc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/m_misc.h b/src/m_misc.h
index 0fe8e62e..6c2da4b1 100644
--- a/src/m_misc.h
+++ b/src/m_misc.h
@@ -40,6 +40,7 @@ char *M_TempFile(char *s);
boolean M_FileExists(char *file);
long M_FileLength(FILE *handle);
boolean M_StrToInt(const char *str, int *result);
+char *M_OEMToUTF8(const char *ansi);
#endif