Applied patch [ 748638 ] wxDos2UnixFilename for unicode

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20993 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2003-06-07 13:55:43 +00:00
parent f9007c324c
commit 4603b4f92f

View File

@@ -1074,13 +1074,13 @@ void wxUnixFilename2FSSpec( const char *path , FSSpec *spec )
#endif // __WXMAC__ #endif // __WXMAC__
void void
wxDos2UnixFilename (char *s) wxDos2UnixFilename (wxChar *s)
{ {
if (s) if (s)
while (*s) while (*s)
{ {
if (*s == '\\') if (*s == _T('\\'))
*s = '/'; *s = _T('/');
#ifdef __WXMSW__ #ifdef __WXMSW__
else else
*s = wxTolower (*s); // Case INDEPENDENT *s = wxTolower (*s); // Case INDEPENDENT