VOGONS


File names encoding

Topic actions

First post, by OVZh

User metadata
Rank Newbie
Rank
Newbie

Hi again,

Under my Vista file names are encoded with cp-1251 code page (Win Cyrillic). But DOSBox treats them as if they were in cp-866 (DOS Cyrillic) which results in wrongly displayed file names (e.g. if using DIR shell cmd). How can I fix this (any clue on modifying the sources?) ?

Thanks for your help,
--
Oleg Zhukov

Reply 1 of 3, by wd

User metadata
Rank DOSBox Author
Rank
DOSBox Author

You can't fix this.

Reply 2 of 3, by OVZh

User metadata
Rank Newbie
Rank
Newbie

Anyway, can you point out the place in source code where file names are read? I believe I can insert there a function to convert the encoding. Why not?

Thanks,
--
Oleg Zhukov

Reply 3 of 3, by wd

User metadata
Rank DOSBox Author
Rank
DOSBox Author

can you point out the place in source code where file names are read?

There's no such function "where filenames are read".
Other than that, check the file functions (int21/whatever) and trace down
to all the functions that deal with fopen/stat/others.