Re: [hatari-devel] Most suitable GEMDOS path character replacement?

[ Thread Index | Date Index | More lists.tuxfamily.org/hatari-devel Archives ]


Am Sun, 1 Jun 2014 15:25:32 +0300
schrieb Eero Tamminen <oak@xxxxxxxxxxxxxx>:

> Hi,
> 
> On sunnuntai 01 kesäkuu 2014, Thomas Huth wrote:
> > schrieb Eero Tamminen <oak@xxxxxxxxxxxxxx>:
> > > I noticed a small problem with current GEMDOS HD emulation.
> > > If host file name contains characters that are invalid for
> > > GEMDOS, Hatari replaces them with '@' characters which are
> > > valid.
> > > 
> > > However, '@' has special meaning in INF files, which Hatari
> > > uses to implement program autostarting.  I.e. currently
> > > autostart doesn't work for programs that have invalid
> > > characters.
> > > 
> > > 
> > > Any sugggestions on what character I should use as replacement
> > > instead of '@'?
> > > 
> > > It should be rarely used in Atari file names (to avoid file
> > > name conflicts), valid for GEMDOS file names & paths, and
> > > not cause problems in INF files or e.g. in GEM file selectors.
> > 
> > Maybe '§' (just a blind guess)?
> 
> It's not a valid character.  See str.c Str_Filename2TOSname().

At least it was possible in old TOS versions to use this character in
the GEM dialogs for filenames.

> > Do you have a list of what characters are valid in GEMDOS?
> 
> Valid characters are ones with codes 33 -> 126, except for:
> 	*, /, :, ?, \, {, }
> 
> So it could be e.g. one of these:
> 	!, #, $, %, &, +, =, |

Most of these characters have special meaning in shells, so I'd rather
avoid them. So maybe use + or = ? Or ^ ?

 Thomas



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/