pan-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Pan-users] Re: Pan fails to deal with non-Latin usernames (Windows)


From: Роман Донченко
Subject: [Pan-users] Re: Pan fails to deal with non-Latin usernames (Windows)
Date: Sun, 7 Sep 2008 23:07:24 +0400

#if !GLIB_CHECK_VERSION(2,6,0) // if Glib is too old to have wrappers, fall back to libc
#define g_freopen freopen
#define g_fopen fopen
#define g_rmdir rmdir
#define g_remove remove
#define g_unlink unlink
#define g_lstat lstat
#define g_stat stat
#define g_rename rename
#define g_open open
#endif

This could also use a wrapper for g_mkdir. In file-util.cc there are lines:

~
#if GLIB_CHECK_VERSION(2,6,0)
   retval = g_mkdir (path, mode);
#elif defined(G_OS_WIN32)
   retval = mkdir (path);
#else
   retval = mkdir (path, mode);
#endif
~

that could be replaced by a simple call of g_mkdir if the wrapper was in place.

So add #define g_mkdir mkdir to the quoted block.






reply via email to

[Prev in Thread] Current Thread [Next in Thread]