Hola, Eduardo!

OK, done again. New patch in: http://perso.wanadoo.es/samelborp/country3.zip

It also adds complete NLS info for (de,at)/(850,858,437), and keeps the entry for tr/850, but makes tr/857 the default.

Thanks! Just applied it, tested, uploaded the 7K binary to my page, and committed to CVS.


Please, do it yourself. However, you should keep in mind the following limitations if you overwrite the kernel hardcoded tables:

* The hardcoded NLS package points the UCASE and FUCASE pointers to the same table. This is OK for the most of the country/codepage pairs, but will not allow loading info for codepage 852.

* The harcoded package does not have enough space for a non-empty DBCS table, so it won't be possible to load the info for Japanese, Chinese or any other language with DBCS.

* There is no room for the LCASE table, so it won't be possible to load the ru/866 pair.

Hmm... these limitations make me doubt that I can cope well enough :-( Any other volunteers?


I see three options:

- Overwrite the hardcoded tables for "compatible" packages and just throw a message like "NLS package too complex. Use NLSFUNC" if the package has FUCASE, LCASE or non-empty DBCS (I don't remember who suggested that)

- Leave the hardcoded pages untouched and allocate memory for the new package, then chain to nlsInfo.chain and make it the active package. This is what FD NLSFUNC does and what I think that Steffen had in mind when designing the nls support.

- This one will not make me very popular :-) : Make enough room in the hardcoded tables. This will mean 258 (LCASE) + 130 (FUCASE) + 132 (DBCS) = 520 more bytes. Probably 132 bytes for DBCS is way too much and 16 or 32 should be enough in practice, but this is the theoretical maximum, AFAIK.

I'd prefer the last approach. But let's hear other's opinions too before starting to write it.


Thanks,
Lucho


-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM. Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php
_______________________________________________
Freedos-kernel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freedos-kernel

Reply via email to