locale: Do not define lang_ab for tcy_IN and bhb_IN
Commit Message
After renaming localedef now complains and build fails
LC_ADDRESS: field `lang_ab' must not be defined
earlier the names were similar to lang_ab definitions 'tu' or 'bh'
but after rename they are not.
---
localedata/ChangeLog | 6 ++++++
localedata/locales/bhb_IN | 2 +-
localedata/locales/tcy_IN | 2 +-
3 files changed, 8 insertions(+), 2 deletions(-)
Comments
On 20 Jul 2015 23:39, Khem Raj wrote:
> After renaming localedef now complains and build fails
>
> LC_ADDRESS: field `lang_ab' must not be defined
>
> earlier the names were similar to lang_ab definitions 'tu' or 'bh'
> but after rename they are not.
my understanding is that lang_ab can only contain iso-639-1 (which are two
letters), so if the lang doesn't appear there (these only have iso-639-3
three letter codes), we omit the value. pushed.
-mike
Hi,
On 2015-07-21 09:53, Mike Frysinger wrote:
> On 20 Jul 2015 23:39, Khem Raj wrote:
>> After renaming localedef now complains and build fails
>>
>> LC_ADDRESS: field `lang_ab' must not be defined
>>
>> earlier the names were similar to lang_ab definitions 'tu' or 'bh'
>> but after rename they are not.
>
> my understanding is that lang_ab can only contain iso-639-1 (which are two
> letters), so if the lang doesn't appear there (these only have iso-639-3
> three letter codes), we omit the value.
you're correct and amazingly enough this is even documented:
https://sourceware.org/glibc/wiki/Locales#LC_ADDRESS
Cheers,
@@ -1,6 +1,12 @@
2015-07-21 Khem Raj <raj.khem@gmail.com>
[BZ #17475]
+ * locales/bhb_IN: Do not define lang_ab.
+ * locales/tcy_IN: Ditto.
+
+2015-07-21 Khem Raj <raj.khem@gmail.com>
+
+ [BZ #17475]
* SUPPORTED: Rename tu_IN to tcy_IN and bh_IN to bhb_IN.
2015-07-20 Chris Metcalf <cmetcalf@ezchip.com>
@@ -163,7 +163,7 @@ country_ab3 "<U0049><U004E><U0044>"
country_car "<U0049><U004E><U0044>"
country_num 356
lang_name "<U0062><U0068><U0069><U006C><U0069>"
-lang_ab "<U0062><U0068>"
+lang_ab ""
lang_term "<U0062><U0068><U0062>"
lang_lib "<U0062><U0068><U0062>"
END LC_ADDRESS
@@ -179,7 +179,7 @@ country_ab3 "<U0049><U004E><U0044>"
country_car "<U0049><U004E><U0044>"
country_num 356
lang_name "<U0CA4><U0CC1><U0CB3><U0CC1>"
-lang_ab "<U0074><U0075>"
+lang_ab ""
lang_term "<U0074><U0063><U0079>"
lang_lib "<U0074><U0063><U0079>"
END LC_ADDRESS