Re: [cc65] fopen

From: Stefan <montecarlos1gmx.net>
Date: 2010-11-14 19:36:31
I think, the error should not be stressed dependent on the filename but on the reaction from the operating system (kernel, emulator or whatever) when attempting to create the empty file.
When using VICE and writing to Windows fs, preceding spaces and all the PETSCII grafic characters are not allowed, but in the CBM environment it is no problem (for example koala painter filenames with the inverse spade). So there is no possibility to check the validity of the filename just by excluding some letters.

> The cc65 library parses the filename and when doing so checks for
> characters
> it considers invalid. It seems that the routine is overly strict here.
> Currently allowed characters are:
> 
>         letter digits . , - _ + ( )
> 
> I can either remove the check alltogether, extend it by adding more
> allowed
> characters or revert it (check for characters not allowed like ':' and
> '@').
> Any suggestions?
> 
>
-- 
Neu: GMX De-Mail - Einfach wie E-Mail, sicher wie ein Brief!  
Jetzt De-Mail-Adresse reservieren: http://portal.gmx.net/de/go/demail
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Sun Nov 14 19:36:38 2010

This archive was generated by hypermail 2.1.8 : 2010-11-14 19:36:41 CET