but wouldn't it produce an empty filename? and maybe the FATFS implementation run into a neverending loop with empty filenames?
Henk Ken Krugler wrote: > > Hi Jonatan, > >> I am having problems creating a file with VFSFileCreate() if the file >> name >> contains international characters. >> >> err = VFSFileCreate(vfsRefNum, "/MYDIR/aaaaaaaaaaaaaaa.tmp"); >> >> is working. >> >> err = VFSFileCreate(vfsRefNum, "/MYDIR/���������������.tmp"); >> >> is not. >> >> Execution stops, the Palm freezes and no error code is returned. >> >> In the Reference manual it says in the comments about VFSFileCreate: >> >> "It is the *responsibility of the file system library* to ensure that >> all >> filenames are translated into a format that is compatible with the native >> format of the file system, such as the 8.3 convention for a FAT file >> system >> without long filename support." >> >> I am working with the NR70 series and a Memory Stick card. [ Which >> like all >> VFS enabled Palm is using the >> VFAT file system if I am correct, and thus have long file name support. ] >> >> Can you not create files if its name contains international characters? > > > This should work, since the VFS code tries to convert from PalmLatin to > UTF-16LE when creating long file names, and it has code in place to > convert from PalmLatin to the DOS code page for the 8.3 short format. > > What was the version of Palm OS, and what device, where you encounter > the freeze? > > Thanks, > > -- Ken -- ------------------------------------------------------------------------- [EMAIL PROTECTED] www.metaviewsoft.de <A HREF="http://www.handango.com/PlatformTopSoftware.jsp?authorId=95946"> <IMG SRC="http://user.cs.tu-berlin.de/~jonash/werbung.jpg"></A> ------------------------------------------------------------------------- -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
