--- "Prof A Olowofoyeku (The African Chief)" chiefsoft@bigfoot.com wrote:
I use FSplit, FindFirst, FindNext procedures from
the
Dos unit in program I'm trying to port for Linux. This procedures cut off the long filenames to 8 characters (DOS standard)
This is news to me. Does the Dos unit really do this?
(*spliter.pas*) program spliter; uses Dos; var dr : DirStr; fnm : NameStr; ex : ExtStr; begin FSplit(paramstr(1), dr, fnm, ex); writeln(' Path is: '+dr+' File name is :'+fnm+' Extention is: '+ex); end. (*/spliter.pas*)
This program was compiled with GNU Pascal under Linux with -s and -o keys only. Now if I input: #./spliter /mnt/CD/images/MyFavoriteShot.jpg the output is: Path is: /mnt/CD/images/ File name is :MyFavori Extention is: .jpg Please note that MyFavoriteShot was truncated to MyFavori Gues it easy to replicate.
and the program doesn't works under Linux
correctly.
What exactly does this mean in this context?
Simply if I entered the file MyFavoriteShot.jpg for processing it looks for the file named MyFavori.jpg end sends the error message - file doesn't exist.
What is possible solutions? What alternative to
the
Dos unit?
I think we first need to investigate why you think that the Dos unit truncates the filenames.
Because MyFavoriteShot.jpg became MyFavori.jpg after dos's FSplit.
Regards, Peter.
__________________________________ Do you Yahoo!? Yahoo! Mail SpamGuard - Read only the mail you want. http://antispam.yahoo.com/tools