diff options
author | Arnav Singh <arnavion@gmail.com> | 2012-10-22 02:00:21 -0700 |
---|---|---|
committer | Arnav Singh <arnavion@gmail.com> | 2012-10-22 19:07:28 -0700 |
commit | 8c7ec909b899d859af3f20927ab2db6e3b2270fb (patch) | |
tree | 7b3860a9c45513064e6cd3d33ed5f206dcce8457 /src/common/xchat.h | |
parent | 1cc599a0f92eddf65d3bb9b6d874c21b1281d803 (diff) |
Replaced use of OS file I/O functions which expect filenames in system codepage with GLib's, since GLib's functions work with UTF-8 and GLib handles converting the filename to system codepage for us.
Diffstat (limited to 'src/common/xchat.h')
-rw-r--r-- | src/common/xchat.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/common/xchat.h b/src/common/xchat.h index a19716f6..2980fc1c 100644 --- a/src/common/xchat.h +++ b/src/common/xchat.h @@ -589,12 +589,7 @@ struct popup /* CL: get a random int in the range [0..n-1]. DON'T use rand() % n, it gives terrible results. */ #define RAND_INT(n) ((int)(rand() / (RAND_MAX + 1.0) * (n))) -#ifdef WIN32 -#define xchat_filename_from_utf8 g_locale_from_utf8 -#define xchat_filename_to_utf8 g_locale_to_utf8 -#else #define xchat_filename_from_utf8 g_filename_from_utf8 #define xchat_filename_to_utf8 g_filename_to_utf8 -#endif #endif |