Modified Files:
wxWindows/descrip.mms wxWindows/src/common/filefn.cpp
Filename problem on VMS fixed.
----------------------------------------------------------------------
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8419
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
set def [.wxwindows]
all :
set def [.wxwindows]
all :
purge [...]
delete [...]*.obj;
purge [...]
delete [...]*.obj;
purge [...]
delete [...]*.obj;
purge [...]
delete [...]*.obj;
{
done = TRUE;
#ifdef __VMS__
{
done = TRUE;
#ifdef __VMS__
+ if ( path[i] == wxT(']') )
+ buf[i+1] = 0;
+ else
+#endif
{
done = TRUE;
#ifdef __VMS__
{
done = TRUE;
#ifdef __VMS__
+ if ( path[i] == wxT(']') )
+ buf[i+1] = 0;
+ else
+#endif
wxString wxFindFirstFile(const wxChar *spec, int flags)
{
wxString result;
wxString wxFindFirstFile(const wxChar *spec, int flags)
{
wxString result;
+#ifdef __VMS
+ wxChar *specvms = NULL;
+#endif
+
#if !defined( __VMS__ ) || ( __VMS_VER >= 70000000 )
if (gs_dirStream)
closedir(gs_dirStream); // edz 941103: better housekeping
#if !defined( __VMS__ ) || ( __VMS_VER >= 70000000 )
if (gs_dirStream)
closedir(gs_dirStream); // edz 941103: better housekeping
// special case: path is really "/"
if ( !path && gs_strFileSpec[0u] == wxT('/') )
// special case: path is really "/"
if ( !path && gs_strFileSpec[0u] == wxT('/') )
- path = wxT('/');
- // path is empty => Local directory
+#ifdef __VMS
+ {
+ wxStrcpy( specvms , wxT( "[000000]" ) );
+ gs_strFileSpec = specvms;
+ wxString path_vms(wxPathOnly(gs_strFileSpec));
+ path = path_vms;
+ }
+#else
+ path = wxT('/');
+#endif
+ // path is empty => Local directory
+#ifdef __VMS
+ {
+ wxStrcpy( specvms , wxT( "[]" ) );
+ gs_strFileSpec = specvms;
+ wxString path_vms1(wxPathOnly(gs_strFileSpec));
+ path = path_vms1;
+ }
+#else
+ path = wxT('.');
+#endif
+
gs_dirStream = opendir(path.fn_str());
if ( !gs_dirStream )
{
gs_dirStream = opendir(path.fn_str());
if ( !gs_dirStream )
{