[PATCH v3 1/1] localedata: Add Hunsrickisch locale for Brazil (hrx_BR)

Carlos O'Donell carlos@redhat.com
Tue Mar 24 12:56:36 GMT 2026


On 3/24/26 12:39 AM, Garccez wrote:
> From: Garccez <hackermaepb@gmail.com>
> 
> Signed-off-by: Garccez <joangarcez2100@gmail.com>
> ---
>   localedata/SUPPORTED      |   1 +
>   localedata/locales/hrx_BR | 116 ++++++++++++++++++++++++++++++++++++++

hrx is missing from glibc/locale/iso-639.def?

May you please break this into 2 commits?

(1) Adds hrx to iso-639.def, see existing change to see how the changelog
     provides references.

(2) Adds the hrx_BR locale with SUPPORTED change.

Thank you!

>   2 files changed, 117 insertions(+)
>   create mode 100644 localedata/locales/hrx_BR
> 
> diff --git a/localedata/SUPPORTED b/localedata/SUPPORTED
> index 567ea85580..41cfcd6c29 100644
> --- a/localedata/SUPPORTED
> +++ b/localedata/SUPPORTED
> @@ -261,6 +261,7 @@ hif_FJ/UTF-8 \
>   hne_IN/UTF-8 \
>   hr_HR.UTF-8/UTF-8 \
>   hr_HR/ISO-8859-2 \
> +hrx_BR.UTF-8/UTF-8 \
>   hsb_DE/ISO-8859-2 \
>   hsb_DE.UTF-8/UTF-8 \
>   ht_HT/UTF-8 \
> diff --git a/localedata/locales/hrx_BR b/localedata/locales/hrx_BR
> new file mode 100644
> index 0000000000..ee4e8d1915
> --- /dev/null
> +++ b/localedata/locales/hrx_BR
> @@ -0,0 +1,116 @@
> +comment_char %
> +escape_char /
> +
> +% This file is part of the GNU C Library and contains locale data.
> +% The Free Software Foundation does not claim any copyright interest
> +% in the locale data contained in this file.  The foregoing does not
> +% affect the license of the GNU C Library as a whole.  It does not
> +% exempt you from the conditions of the license if your use would
> +% otherwise be governed by that license.
> +

This was a mistake in my initial review. For DCO'd contributions you should
use the same header that is in ab_GE for example.

> +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
> +% Hunsrickisch (hrx) locale for Brazil
> +% Source: João V. Garcez
> +% Language: Hunsrickisch (Riograndenser Hunsrickisch)
> +% Territory: Brazil
> +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
> +
> +LC_IDENTIFICATION
> +title      "Hunsrickisch locale for Brazil"
> +source     "João V. Garcez"
> +address    ""
> +contact    ""
> +email      "joangarcez2100@protonmail.com"

OK. Thanks for adding contact information.

> +tel        ""
> +fax        ""
> +language   "Hunsrickisch"
> +territory  "Brazil"
> +revision   "0.1"
> +date       "2026-03-20"
> +%
> +category  "i18n:2012";LC_IDENTIFICATION
> +category  "i18n:2012";LC_CTYPE
> +category  "i18n:2012";LC_COLLATE
> +category  "i18n:2012";LC_TIME
> +category  "i18n:2012";LC_NUMERIC
> +category  "i18n:2012";LC_MONETARY
> +category  "i18n:2012";LC_MESSAGES
> +category  "i18n:2012";LC_PAPER
> +category  "i18n:2012";LC_NAME
> +category  "i18n:2012";LC_ADDRESS
> +category  "i18n:2012";LC_TELEPHONE
> +category  "i18n:2012";LC_MEASUREMENT
> +END LC_IDENTIFICATION
> +
> +LC_CTYPE
> +copy "i18n"
> +END LC_CTYPE
> +
> +% There is no Hunsrik-specific way of writing these 3 below. Hunsrickisch speakers use Brazilian Portuguese standards.

May we keep please these lines below 72 chars?

> +LC_COLLATE
> +copy "pt_BR"
> +END LC_COLLATE
> +
> +LC_MONETARY
> +copy "pt_BR"
> +END LC_MONETARY
> +
> +LC_NUMERIC
> +copy "pt_BR"
> +END LC_NUMERIC
> +
> +LC_MESSAGES
> +yesexpr "^[+1iIjJyY]"
> +noexpr  "^[-0nN]"
> +yesstr  "ia"
> +nostr   "nee"
> +END LC_MESSAGES
> +
> +LC_TIME
> +abday   "Su";"Mo";"Di";"Mi";"Do";"Fr";"Sa"
> +day     "Sunntach";"Montach";"Dinstach";"Mittwoch";"Donnerstach";"Freitach";"Samstach"
> +abmon   "Jan";"Feb";"Mer";"Apr";"Maa";"Jun";"Jul";"Aag";"Sep";"Okt";"Nov";"Dez"
> +mon     "Januer";"Februer";"Merz";"April";"Maai";"Juni";"Juli";"Aagust";"September";"Oktover";"November";"Dezember"

Likewise we can reflow these with line continuation for easier reading.

> +d_t_fmt "%a %d %b %Y %T %Z"
> +d_fmt   "%d/%m/%Y"
> +t_fmt   "%T"
> +am_pm   "";""
> +t_fmt_ampm ""
> +date_fmt   "%a %-d. %b %H:%M:%S %Z %Y"
> +week    7;19971130;1
> +first_weekday 1
> +END LC_TIME
> +
> +LC_PAPER
> +copy "i18n"
> +END LC_PAPER
> +
> +LC_MEASUREMENT
> +copy "i18n"
> +END LC_MEASUREMENT
> +
> +LC_ADDRESS
> +postal_fmt  "%f%N%a%N%d%N%b%N%s %h %e %r%N%z %T%N%c%N"
> +country_name "Brasilje"
> +country_ab2  "BR"
> +country_ab3  "BRA"
> +country_num  076
> +country_car  "BR"
> +country_isbn 85
> +lang_name    "Hunsrickisch"
> +lang_ab      ""
> +lang_term    "hrx"
> +lang_lib     "hrx"
> +END LC_ADDRESS
> +
> +LC_TELEPHONE
> +copy "pt_BR"
> +END LC_TELEPHONE

OK. Good, matches pt_BR.

> +
> +LC_NAME
> +name_fmt  "%d%t%g%t%m%t%f"
> +name_miss "Fraa"
> +name_mr   "Herr"
> +name_mrs  "Fraa"
> +name_ms   "Fraa"
> +END LC_NAME


-- 
Cheers,
Carlos.



More information about the Libc-alpha mailing list