PDA

View Full Version : @dext: mode2maker


FiW
10th July 2002, 05:44
i have corrected src for support of the national names of the files (russian)

mkvcdfs.c

printf("Copying data from \"%s\"\n", file.name);

OemToChar(file.name,file.name);

fd = fopen(file.name,"rb");

vcdisofs.c

if (!ascii) to_dchar(FORM2_EXT, FORM2_EXT, 30);

CharToOem(srcname,srcname);

filename = (char *) strrchr(srcname, DIR_SLASH);

i do not programme in c, but this works!

DeXT
14th July 2002, 13:44
Thanks! I will add it to the next version.

BTW sorry for the slowdown in the development, but currently my free time is near zero!

ChristianHJW
14th July 2002, 22:11
we noticed you are not around a lot ..... we miss you mate :( ...hope you can come back soon !

DeXT
16th August 2002, 13:25
Hi there again. I added international characeter set conversion to the tool following your suggestion (on vcdifofs.c), so it can properly write file names with international characters, but there's something I can't understand very well, on mkvcdfs.c:

printf("Copying data from \"%s\"\n", file.name);

OemToChar(file.name,file.name);

fd = fopen(file.name,"rb");
So you make a DOS-to-ANSI conversion from the entered command line file name before opening the file. This means you are entering file names using DOS charset but Windows should automatically do this conversion, at least this is how it works for me. I don't need this to use international (spanish) characters on the input file names. In fact it gives a file not found error when doing this conversion. Perhaps it's different with the Russian charset?

What happens if you just add the modification to vcdisofs.c but not this one?

I cannot enable it by default because it won't work with most international character sets but I can add an option to make this command line file name conversion just for some charsets, if needed.