#140 lower case file names not recognized

0.58
closed
2
2012-09-07
2003-06-06
Andrea Mazzoleni
No

With DosBox 0.58 the files with lower case names in the
Linux filesystem are not recognized until you use the
"dir" command.

For example:

C:\bushido> bushido
Illegal command: bushido.

C:\bushido> type bushido.exe
File bushido.exe not found.

C:\bushido> dir
...
BUSHIDO.EXE 72,192 23-03-1997 0:04
...

C:\bushido> bushido
<now the game start>

The SCUMMVM program solve this problem trying always
the lower case name in all the file operations if the
uppercase name fails.

Discussion

  • Peter Veenstra
    Peter Veenstra
    2003-06-16

    Logged In: YES
    user_id=535630

    yeah. We've noticed it as well
    (if you do dir the cache get's filled.)

    The ways scummvm fixes it is out of the order for us. (we
    now use an internal list of uppercase 8.3 files against the
    filename on the localfilesystem.) This is far more flexible.
    only the list doesn't get filled at the right time :)

     
  • Logged In: YES
    user_id=23042

    I think the issue here is a bug in FindDirInfo.

    In the inner loop, when caching curDir, it passes "work" as
    the expanded native directory. However, "work" is derived
    from "path", which isn't a native path, so specifically the
    case could be wrong.

    Changing "OpenDir(curDir,work,id)" into
    "OpenDir(curDir,expandedPath,id)" should fix it, I think.

    (this additionally allows you to to remove the construction
    of work a few lines above)

     
  • Peter Veenstra
    Peter Veenstra
    2003-08-07

    Logged In: YES
    user_id=535630

    Allready applied the patch.

    it should fix it.

    Will close this bug report.
    Please reopen it if it's still broken. But it worked fine at my pc