diff options
Diffstat (limited to 'locale/programs/charmap.c')
-rw-r--r-- | locale/programs/charmap.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/locale/programs/charmap.c b/locale/programs/charmap.c index a670db9..964d932 100644 --- a/locale/programs/charmap.c +++ b/locale/programs/charmap.c @@ -256,9 +256,15 @@ charmap_read (const char *filename, int verbose, int error_not_found, if (failed) { - record_warning (_("\ -character map `%s' is not ASCII compatible, locale not ISO C compliant\n"), - result->code_set_name); + /* A user may disable the ASCII compatibility warning check, + but we must remember that the encoding is not ASCII + compatible, since it may have other implications. Later + we will set _NL_CTYPE_MAP_TO_NONASCII from this value. */ + if (warn_ascii) + record_warning (_( +"character map `%s' is not ASCII compatible, locale not ISO C compliant " +"[--no-warnings=ascii]"), + result->code_set_name); enc_not_ascii_compatible = true; } } |