top: idiot! sometimes nls was misspelled nsl (but not anymore)
This commit is contained in:
parent
bc441a67ea
commit
04e3ec75dd
@ -2073,7 +2073,7 @@ static void before (char *me) {
|
|||||||
if (Myname) ++Myname; else Myname = me;
|
if (Myname) ++Myname; else Myname = me;
|
||||||
|
|
||||||
// accommodate nls/gettext potential translations
|
// accommodate nls/gettext potential translations
|
||||||
initialize_nsl();
|
initialize_nls();
|
||||||
|
|
||||||
// establish cpu particulars
|
// establish cpu particulars
|
||||||
#ifdef PRETEND4CPUS
|
#ifdef PRETEND4CPUS
|
||||||
|
@ -440,7 +440,7 @@ static void build_norm_nlstab (void) {
|
|||||||
/*
|
/*
|
||||||
* This routine builds the nls table containing specially
|
* This routine builds the nls table containing specially
|
||||||
* formatted strings designed to fit within an 80x24 terminal. */
|
* formatted strings designed to fit within an 80x24 terminal. */
|
||||||
static void build_uniq_nsltab (void) {
|
static void build_uniq_nlstab (void) {
|
||||||
char buf[BIGBUFSIZ];
|
char buf[BIGBUFSIZ];
|
||||||
|
|
||||||
/* Translation Notes ------------------------------------------------
|
/* Translation Notes ------------------------------------------------
|
||||||
@ -650,7 +650,7 @@ static void build_uniq_nsltab (void) {
|
|||||||
* user will also have to export an empty LC_ALL= to actually
|
* user will also have to export an empty LC_ALL= to actually
|
||||||
* enable any translations.
|
* enable any translations.
|
||||||
*/
|
*/
|
||||||
void initialize_nsl (void) {
|
void initialize_nls (void) {
|
||||||
#ifdef VALIDATE_NLS
|
#ifdef VALIDATE_NLS
|
||||||
static const char *nls_err ="\t%s_nlstab[%d] == NULL\n";
|
static const char *nls_err ="\t%s_nlstab[%d] == NULL\n";
|
||||||
int i;
|
int i;
|
||||||
@ -674,7 +674,7 @@ void initialize_nsl (void) {
|
|||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
memset(Uniq_nlstab, 0, sizeof(Uniq_nlstab));
|
memset(Uniq_nlstab, 0, sizeof(Uniq_nlstab));
|
||||||
build_uniq_nsltab();
|
build_uniq_nlstab();
|
||||||
for (i = 0; i < uniq_MAX; i++)
|
for (i = 0; i < uniq_MAX; i++)
|
||||||
if (!Uniq_nlstab[i]) {
|
if (!Uniq_nlstab[i]) {
|
||||||
fprintf(stderr, nls_err, "Uniq", i);
|
fprintf(stderr, nls_err, "Uniq", i);
|
||||||
@ -687,6 +687,6 @@ void initialize_nsl (void) {
|
|||||||
|
|
||||||
build_desc_nlstab();
|
build_desc_nlstab();
|
||||||
build_norm_nlstab();
|
build_norm_nlstab();
|
||||||
build_uniq_nsltab();
|
build_uniq_nlstab();
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
@ -75,7 +75,7 @@ enum uniq_nls {
|
|||||||
uniq_MAX
|
uniq_MAX
|
||||||
};
|
};
|
||||||
|
|
||||||
void initialize_nsl (void);
|
void initialize_nls (void);
|
||||||
|
|
||||||
#endif /* _Itop_nls */
|
#endif /* _Itop_nls */
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user