[PATCH] localedata: Fix currency symbol position for eu_ES and gl_ES [BZ #34762]

Avinal Kumar avinal.xlvii@gmail.com
Tue Nov 3 19:51:32 GMT 2026


The Basque (eu_ES) and Galician (gl_ES) locales placed the currency
symbol before the amount (e.g. "€ 123,45") instead of after it
("123,45 €").  Both are languages of Spain and follow Spanish euro
conventions, where the symbol trails the amount, as reflected by CLDR
and by the existing es_ES and ca_ES locales.

Add tests to tst-fmon.data covering positive and negative values for
both these locales.

Reference:
gl - https://st.unicode.org/cldr-apps/v#r_compact/gl//
eu - https://st.unicode.org/cldr-apps/v#r_compact/eu//

Signed-off-by: Avinal Kumar <avinal.xlvii@gmail.com>
---
I am not sure if more tests should be added (and where). I found similar tests
in tst-fmon.data and added my tests there.

 localedata/Makefile           | 2 ++
 localedata/locales/eu_ES      | 4 ++--
 localedata/locales/eu_ES@euro | 4 ++--
 localedata/locales/gl_ES      | 4 ++--
 localedata/tst-fmon.data      | 8 ++++++++
 5 files changed, 16 insertions(+), 6 deletions(-)

diff --git a/localedata/Makefile b/localedata/Makefile
index 0fb1d78c29..d115781c60 100644
--- a/localedata/Makefile
+++ b/localedata/Makefile
@@ -339,6 +339,7 @@ LOCALES := \
   eo.UTF-8 \
   es_ES.UTF-8 \
   et_EE.UTF-8 \
+  eu_ES.UTF-8 \
   fa_IR.UTF-8 \
   fi_FI.UTF-8 \
   fil_PH.UTF-8 \
@@ -347,6 +348,7 @@ LOCALES := \
   fr_FR.UTF-8 \
   fur_IT.UTF-8 \
   gez_ER.UTF-8@abegede \
+  gl_ES.UTF-8 \
   ha_NG.UTF-8 \
   hr_HR.ISO-8859-2 \
   hr_HR.UTF-8 \
diff --git a/localedata/locales/eu_ES b/localedata/locales/eu_ES
index d88cf8866b..2fe3595cc0 100644
--- a/localedata/locales/eu_ES
+++ b/localedata/locales/eu_ES
@@ -79,9 +79,9 @@ positive_sign        ""
 negative_sign        "-"
 int_frac_digits      2
 frac_digits          2
-p_cs_precedes        1
+p_cs_precedes        0
 p_sep_by_space       1
-n_cs_precedes        1
+n_cs_precedes        0
 n_sep_by_space       1
 p_sign_posn          1
 n_sign_posn          1
diff --git a/localedata/locales/eu_ES@euro b/localedata/locales/eu_ES@euro
index 655a7b1faa..45c35e1946 100644
--- a/localedata/locales/eu_ES@euro
+++ b/localedata/locales/eu_ES@euro
@@ -65,9 +65,9 @@ positive_sign        ""
 negative_sign        "-"
 int_frac_digits      0
 frac_digits          0
-p_cs_precedes        1
+p_cs_precedes        0
 p_sep_by_space       1
-n_cs_precedes        1
+n_cs_precedes        0
 n_sep_by_space       1
 p_sign_posn          1
 n_sign_posn          1
diff --git a/localedata/locales/gl_ES b/localedata/locales/gl_ES
index 3bb8fb0035..93ec153cf3 100644
--- a/localedata/locales/gl_ES
+++ b/localedata/locales/gl_ES
@@ -75,9 +75,9 @@ positive_sign        ""
 negative_sign        "-"
 int_frac_digits      2
 frac_digits          2
-p_cs_precedes        1
+p_cs_precedes        0
 p_sep_by_space       1
-n_cs_precedes        1
+n_cs_precedes        0
 n_sep_by_space       1
 p_sign_posn          1
 n_sign_posn          1
diff --git a/localedata/tst-fmon.data b/localedata/tst-fmon.data
index 1980c3427a..93f39fb41f 100644
--- a/localedata/tst-fmon.data
+++ b/localedata/tst-fmon.data
@@ -133,6 +133,14 @@ en_US.ISO-8859-1	%#5n	123.45		 $   123.45
 en_US.ISO-8859-1	%#5n	-123.45		-$   123.45
 en_US.ISO-8859-1	%#5n	3456.781	 $ 3,456.78
 #
+# check Basque (Spain) has currency symbol after the amount
+eu_ES.UTF-8	%n	123.45		123,45 €
+eu_ES.UTF-8	%n	-123.45		-123,45 €
+#
+# check Galician (Spain) has currency symbol after the amount
+gl_ES.UTF-8	%n	123.45		123,45 €
+gl_ES.UTF-8	%n	-123.45		-123,45 €
+#
 # check all cs_precedes/sign_posn/sep_by_space combinations using
 # special test locales.  The six characters after the "_" indicate
 # these three values for positive and then negative quantities.
-- 
2.56.0



More information about the Libc-alpha mailing list