Hi,
This small patch updates country code and codepage for the active
package when using COUNTRY=. It is for UNSTABLE.
Eduardo.
diff -uNrp cvs/kernel/hdr/nls.h eduardo/kernel/hdr/nls.h
--- cvs/kernel/hdr/nls.h 2004-09-22 20:41:57.000000000 +0200
+++ eduardo/kernel/hdr/nls.h 2004-11-05 16:25:54.245177344 +0100
@@ -476,7 +476,7 @@ struct nlsInfoBlock { /* This
};
extern struct nlsInfoBlock nlsInfo;
-extern struct nlsPackage ASM nlsPackageHardcoded;
+extern struct nlsPackage FAR ASM nlsPackageHardcoded;
/* These are the "must have" tables within the hard coded NLS pkg */
extern struct nlsFnamTerm FAR ASM nlsFnameTermHardcoded;
extern struct nlsDBCS FAR ASM nlsDBCSHardcoded;
diff -uNrp cvs/kernel/kernel/config.c eduardo/kernel/kernel/config.c
--- cvs/kernel/kernel/config.c 2004-11-05 16:22:36.069304656 +0100
+++ eduardo/kernel/kernel/config.c 2004-11-05 16:28:33.592952800 +0100
@@ -1247,6 +1247,8 @@ err:printf("%s has invalid format\n", fi
!= entry.codepage
&& cpage)
continue;
+ nlsPackageHardcoded.cntry = entry.country;
+ nlsPackageHardcoded.cp = entry.codepage;
subf_data.length = /* MS-DOS "CTYINFO" is up to 38 bytes */
min(subf_data.length, sizeof(struct CountrySpecificInfo));
}
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
Freedos-kernel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freedos-kernel