VOGONS


First post, by skatz

User metadata
Rank Member
Rank
Member

When DOS_Drive_Cache starts FindFirst operation it recreates its filelist from cached one. But as shortname generation depends on files order, this new list may produce different names for same files.
Example:
In empty dir create three dirs (listed in creation order, on NTFS they are always name ordered):
'123456789' -> '123456~1'
'1 2' (two spaces) -> '12~1'
'1 2' (one_spaces) -> '12~2'
Directory listing displays them as
'123456~1'
'12~1'
'12~1'
All three dirs are still accessible by their cached names.
I wrote little patch that restores cached shortnames. It is not the best way, but it works.
http://sourceforge.net/tracker/index.php?func … 551&atid=467234

And some another issue (I do not want create another topic).
Keyboard layout switcher is limited to first nine submappings: it uses opcodes 120-128 instead of 120-139.
Example: for Ukrainian (ur,ua) layouts with codepage 866/808 it can not switch between cyrilic and latin mappings.
http://sourceforge.net/tracker/index.php?func … 551&atid=467234

Reply 1 of 4, by wd

User metadata
Rank DOSBox Author
Rank
DOSBox Author

You don't really need to create sf entries for one-line changes, but well.

it uses opcodes 120-128 instead of 120-139

Right, 139-max seems to be in the docs as well. Got to check if there are some
table references that would need updating though, but doesn't seem like it.
Does that ur layout work then with the direct layout switching? (why the hell
does it need 10+ submappings...)

Thanks for pointing this out.

Reply 2 of 4, by skatz

User metadata
Rank Member
Rank
Member

Why so many layouts?
Russian, Ukrainian, Belarusian. That is three. Each has latin and cyrillic - that is six. Plus Latin-1 submaping. That is seven. And 'Euro' character add variant to each of those. That is fourteen. And, of course, common section which brings id to number fifteen.

All mapping works fine. Problem was only in switching.

Reply 4 of 4, by skatz

User metadata
Rank Member
Rank
Member
wd wrote:

Wow sounds useless 😀

I agree. But most useful for Ukraine codepages (ukrainian and russian) are in the beginning and in the end of mappings list of UR layout.