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:
Luchezar Georgiev 2004-12-05 14:21:00 +00:00
parent a77e3ef3c7
commit 7b0a023193
3 changed files with 6 additions and 7 deletions

View File

@ -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)

View File

@ -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;

View File

@ -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;
}