International keyboard support (Developers)
Yes, the 8-bit (extended ASCII) to Unicode (and vice versa) conversion is a problem as DOS does not provide any table for it.
There exist a 8-bit Uppercase/Lowercase table, collation table but not the 8-bit/Unicode table.
My programs (and also DOSLFN a few other programs) use the .TBL files (for examples and format description look to DOSLFN archive).
The principe is: ask DOS what for code page we actualy use.
Lets say that DOS answers 852.
Then we load the proper TBL file named "cp852uni.tbl" and use the values.
In systems with LFN functions you also maybe can (in theory of course because nobody is so insane) try this:
Using LFNCreateFile create a file in root directory (like C:\) named _insane_#128#129#130... and so on up to #255.
.....It will be internaly translated to Unicode.
But in reading it would be translate back from Unicode to ASCII.
To keep the filename in Unicode you have to read it directly - not using LFNFindFirst("_insane*.*") but using the interrupt INT25h (INT21h/AX=7305h).
---
DOS-u-akbar!
Complete thread:
- International keyboard support - mbbrutman, 21.01.2023, 21:44 (Developers)
- International keyboard support - marcov, 22.01.2023, 14:19
- International keyboard support - tom, 22.01.2023, 18:06
- International keyboard support - Laaca, 22.01.2023, 21:55
- International keyboard support - mbbrutman, 22.01.2023, 22:46
- International keyboard support - Laaca, 23.01.2023, 00:20
- International keyboard support - bretjohn, 23.01.2023, 18:12
- International keyboard support - mbbrutman, 23.01.2023, 23:51
- International keyboard support - bretjohn, 24.01.2023, 21:10
- International keyboard support - tom, 12.02.2023, 18:39
- International keyboard support - bretjohn, 13.02.2023, 15:35
- International keyboard support - tom, 13.02.2023, 18:36
- International keyboard support - bretjohn, 14.02.2023, 04:51
- International keyboard support - tkchia, 13.02.2023, 20:13
- International keyboard support - bretjohn, 14.02.2023, 05:05
- International keyboard support - tom, 13.02.2023, 18:36
- International keyboard support - bretjohn, 13.02.2023, 15:35
- International keyboard support - mbbrutman, 23.01.2023, 23:51
- International keyboard support - tom, 14.02.2023, 12:17
- International keyboard support - tom, 15.02.2023, 13:19
- International keyboard support - marcov, 15.02.2023, 18:14
- International keyboard support - tom, 15.02.2023, 21:31
- International keyboard support - mbbrutman, 18.02.2023, 03:17
- International keyboard support - Aitor, 06.03.2023, 01:09
- International keyboard support - mbbrutman, 18.02.2023, 03:17
- International keyboard support - tom, 15.02.2023, 21:31
- International keyboard support - marcov, 15.02.2023, 18:14
- International keyboard support - tom, 15.02.2023, 13:19
- International keyboard support - mbbrutman, 22.01.2023, 22:46