diff options
author | Eike Rathke <erack@redhat.com> | 2021-07-12 18:53:46 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2021-07-12 22:00:10 +0200 |
commit | 4e0a7df2dfa10bc52d5dbda34f43e0bc0df22ae7 (patch) | |
tree | 3bcb0b2412995d8f66d54fee6da637913cabdeba /include | |
parent | 7e016df70d4ceb6c90ec5f1b129b50a65ff07505 (diff) |
Resolves: tdf#123466 Add Microsoft ill-used {x-none} to known language tags
'x-none' is a private-use tag and letting it escape into the wild
isn't such a private use..
This just prevents the lt_string_value assertion that doesn't harm
anyway but seems to confuse people and makes the tag known to
LibreOffice with a reproducible assigned LCID instead of an
on-the-fly generated one.
Whatever it may take to actually support something tagged with
'x-none'.
Change-Id: I3f32c9ba18a2528584a112157509c1dfda75e29c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118788
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Jenkins
Diffstat (limited to 'include')
-rw-r--r-- | include/i18nlangtag/lang.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/i18nlangtag/lang.h b/include/i18nlangtag/lang.h index b4b6aa69fa6d..c319b068b215 100644 --- a/include/i18nlangtag/lang.h +++ b/include/i18nlangtag/lang.h @@ -781,6 +781,7 @@ namespace o3tl #define LANGUAGE_ON_THE_FLY_SUB_END LanguageType(0x3E) /* 0xFFE0 to 0xFFFF reserved for privateuse and specials. */ +#define LANGUAGE_USER_PRIV_NONE LanguageType(0xFFEA) /* privateuse "x-none", MS ill-escaped into the wild, primary 0x3ea, sub 0x3f */ #define LANGUAGE_USER_PRIV_JOKER LanguageType(0xFFEB) /* privateuse "*" (sic! bad! nasty!), primary 0x3eb, sub 0x3f */ #define LANGUAGE_USER_PRIV_COMMENT LanguageType(0xFFEC) /* privateuse "x-comment", primary 0x3ec, sub 0x3f */ #define LANGUAGE_USER_PRIV_DEFAULT LanguageType(0xFFED) /* privateuse "x-default", primary 0x3ed, sub 0x3f */ |