On Sat, 09 Nov 2013 04:02:58 +0100, Eric Auer <e.a...@jpberlin.de> wrote: > If that just returns a charset-specific static table, maybe it > would be some sort of charset rendering and keyboard / input > method driver that actually implements this, not the kernel?
Sure, it could also be a TSR. I forgot how flexible DOS is in API extensibility. :) > And importantly, note how much of > DOS (and tools) do NOT have to know about the DBCS nature > of text: It makes no difference for FIND if you search for > a four letter word or for four bytes which MEAN two DBCS > characters. Among other things, this is thanks to having > a lead byte / next byte distinction and having no upper > or lower case in CJK languages if I remember correctly. Actually, it makes a big difference for FIND, which why I mentioned it. While leading bytes of double byte characters all have the highest bit set, the following bytes do not. So searching for the ASCII character "i" would give you incorrect results, as 69h is a perfectly valid second byte of a double byte character, for example of ナ, katakana syllable "na" (8369h). Additionally, case insensitive searching works by comparing pairs of characters converted to the same case, so searching for "i" would not only find lines containing ナ, but also オ, katakana syllable "o" (8349h), and other characters. > For the same reason, FreeCOM does not have to care. Well, it does for sorting filenames in the DIR command. :) > SORT is a different story, but I do not know whether DOS > is supposed to include Japanese etc aware SORT or whether > that is normally part of a separately available package > of JKC tools. Also, what license do such packages have? I don't know. ------------------------------------------------------------------------------ November Webinars for C, C++, Fortran Developers Accelerate application performance with scalable programming models. Explore techniques for threading, error checking, porting, and tuning. Get the most from the latest Intel processors and coprocessors. See abstracts and register http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk _______________________________________________ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user