Robert Platt escribió:
This problem is not new. You may assume that the correct codepage is loaded, ok (Microsoft itself does that).OK, I'll end up in a giant mess if I try to put code page detection and information into HELP. I've been looking at things all wrong.
Why not use the catalogues to translate the character entities for a given language, and stop worrying about code pages altogether?
If a catalogue is being used, HELP will simply trust that the correct code page for that catalogue has also been loaded.
However notice what could happen if for some reason, you had
SET LANG=RU
but DISPLAY for some reason failed, thus current codepage were 437.
If the language were Spanish, or probably also French or German, not using 850 but 437 may be somewhat aceptable (just the capital diacritics ÁÂ...) will not be displayed correcly, and one may try to avoid these characters (I tried in FreeCOM as much as I could).
If the language is RU, running the help catalog in Russian under CP437 may render the messages completely unreadable...
You mean using the catalog for the conversion? It could be a bit slow to read the file too often...Alongside all the more usual messages, that catalogue can contain a message for each of the character entities you would expect to use in the language. So when help comes across a character entity, it looks up how to display it in the catalogue.
Aitor
------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Freedos-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/freedos-devel