Name
Windows Compatability Functions --
Details
ftruncate()
#define ftruncate(fd, size) |
g_win32_error_message ()
Translate a Win32 error code (as returned by GetLastError()) into
the corresponding message. The message is either language neutral,
or in the thread's language, or the user's language, the system's
langauge, or US English (see docs for FormatMessage). The returned
string should be deallocated with g_free().
g_win32_getlocale ()
gchar* g_win32_getlocale (void); |
The setlocale in the Microsoft C library uses locale names of the
form "English_United States.1252" etc. We want the Unixish standard
form "en", "zh_TW" etc. This function gets the current thread
locale from Windows and returns it as a string of the above form
for use in forming file names etc. The returned string should be
deallocated with g_free().