Unicode names with DOSLFN driver (Developers)
> Is here any way how to get (with DOSLFN) LFN name of file without
> conversion from UTF-8 to local code page?
Minor nitpick: LFNs are stored in UCS-2 (or maybe UTF-16, not sure, I don't think so though). Of course, if an interface allowed you to access the names with UTF-8 encoded names, that would work too.
> F.e. I have a mix of mp3 files, some with czech names but same with russian
> names and in DOS I am not able to copy them together without destrying
> eighter czech or russian names.
There's no interface that would allow this. You'll have to extend DOSLFN to make it work.
A simple hack to make it work would be to add recognition of a "UTF-8 codepage" to DOSLFN. For that, you'd select some unused codepage number, and if DOSLFN detected that one to be selected, you'd make it convert file names from and to UTF-8 instead of the normal codepage-style conversion. (You could then manually switch to that codepage or whatever.) Besides incompatibility with other programs that don't know this "codepage", the only issue that I can think of right now would be that you'd have to watch out not to overflow the filename buffers; the UTF-8 encoding of non-ASCII characters requires more space than a normal codepage encoding. This should allow you to copy the files without filename corruption. (Lacking UTF-8-capable display drivers, the non-ASCII names would of course show up incorrectly if displayed using DIR or such.)
---
l
Complete thread:
- Unicode names with DOSLFN driver - Laaca, 16.09.2011, 22:22 (Developers)
![Open in board view [Board]](img/board_d.gif)
![Open in mix view [Mix]](img/mix_d.gif)
- Unicode names with DOSLFN driver - ron, 17.09.2011, 01:11
- Unicode names with DOSLFN driver - ecm, 17.09.2011, 14:41
- Unicode names with DOSLFN driver - Laaca, 19.09.2011, 15:46
- Unicode names with DOSLFN driver - ecm, 20.09.2011, 06:06
- Unicode names with DOSLFN driver - Laaca, 20.09.2011, 06:47
- Unicode names with DOSLFN driver - Japheth, 20.09.2011, 08:49
- Unicode names with DOSLFN driver - Laaca, 20.09.2011, 06:47
- Unicode names with DOSLFN driver - ecm, 20.09.2011, 06:06
- Unicode names with DOSLFN driver - Laaca, 19.09.2011, 15:46
Mix view