mirror of https://github.com/FDOS/kernel.git
By Eduardo - update hardcoded country and codepage IDs
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/branches/UNSTABLE@1071 6ac86273-5f31-0410-b378-82cca8765d1b
This commit is contained in:
parent
a77e3ef3c7
commit
7b0a023193
|
@ -350,6 +350,7 @@
|
|||
* portab.h: pragma aux default to gain ~800B unpacked size (Watcom)
|
||||
(the last 2 changes proposed by Bart Oldeman)
|
||||
+ Changes Eduardo
|
||||
* config.c: update hardcoded country and codepage IDs
|
||||
* country.asm: added NLS uppercase/collating tables (437,850,857,858)
|
||||
* inthndlr.c:
|
||||
- added Int 2Fh/26-29h processing for NLSFUNC (with Lucho)
|
||||
|
|
|
@ -476,7 +476,7 @@ struct nlsInfoBlock { /* This block contains all information
|
|||
};
|
||||
|
||||
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;
|
||||
|
|
|
@ -1247,6 +1247,8 @@ err:printf("%s has invalid format\n", filename);
|
|||
!= 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));
|
||||
}
|
||||
|
@ -1255,7 +1257,7 @@ err:printf("%s has invalid format\n", filename);
|
|||
}
|
||||
goto ret;
|
||||
}
|
||||
printf("couldn't find country info for country ID %u\n", ccode);
|
||||
printf("couldn't find info for country ID %u\n", ccode);
|
||||
ret:
|
||||
close(fd);
|
||||
}
|
||||
|
@ -1796,11 +1798,7 @@ STATIC void config_init_fnodes(int f_nodes_cnt)
|
|||
*/
|
||||
STATIC void SetAnyDos(PCStr p)
|
||||
{
|
||||
if (*p) /* garbage at line end? */
|
||||
{
|
||||
CfgFailure(p);
|
||||
return;
|
||||
}
|
||||
UNREFERENCED_PARAMETER(p);
|
||||
ReturnAnyDosVersionExpected = TRUE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue