]> git.saurik.com Git - wxWidgets.git/blobdiff - src/unix/utilsunx.cpp
fixed Cyrillic encodings
[wxWidgets.git] / src / unix / utilsunx.cpp
index b2fa90d046c031682dcb3818469cb7ced27dfad0..b64316f1b6e67653a3c05b74936f13276e52e703 100644 (file)
@@ -640,9 +640,14 @@ long wxExecute(wxChar **argv,
 const wxChar* wxGetHomeDir( wxString *home  )
 {
     *home = wxGetUserHome( wxString() );
+   wxString tmp;
     if ( home->IsEmpty() )
         *home = wxT("/");
-
+#ifdef __VMS
+   tmp = *home;
+   if ( tmp.Last() != wxT(']'))
+     if ( tmp.Last() != wxT('/')) *home << wxT('/');
+#endif
     return home->c_str();
 }