This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
[RFC] Update on the EURO issue
- From: Paolo Carlini <pcarlini at unitus dot it>
- To: libstdc++ at gcc dot gnu dot org
- Date: Mon, 15 Apr 2002 23:05:56 +0200
- Subject: [RFC] Update on the EURO issue
Hi again,
in the meanwhile I have managed to find answers to all my doubts about
the impact of the EURO switch on the monetary locale.
Essentially, what I have done is the following: I have diff-ed
localedata/tests-mbwc/dat_strfmon.c for glibc2.2.5 and for
glibc-head-cvs (result attached, those for glibc-2.2-cvs are identical).
Also, I have studied the relevant glibc ChangLog.
Basically:
1- All the EU monetary locales (de_DE included) after January, 28th are
identical to the previous ones apart from the switch to the EUR symbol.
2- Each xx_XX@euro locale is now identical to the corresponding xx_XX
locale.
Which is the impact of this on the v3 testsuite?
On systems using glibc2.2.x, x >5 and glibc2.3 all the expected DM and
DEM should be changed to EUR in the testsuite. Also, probably fr_FR@euro
should be changed to the equivalent and simpler fr_FR.
The glibc2.3 case would be easy to deal with (specializing the money_get
and money_put tests for (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2) but what
about glibc2.2.x, x >5?
Thanks, Paolo.
--- dat_strfmon.c 2000-08-18 11:34:18.000000000 +0200
+++ /home/paolo/glibc-cvs/libc/localedata/tests-mbwc/dat_strfmon.c 2002-02-28 23:19:01.000000000 +0100
@@ -20,78 +20,78 @@
{
{
/* #01 */
- /*inp*/ { 23, "%n %% %i", 123.00 },
- /*exp*/ { 0,1,22, "123,00 DM % 123,00 DEM" },
+ /*inp*/ { 24, "%n %% %i", 123.00 },
+ /*exp*/ { 0,1,23, "123,00 EUR % 123,00 EUR" },
},
{
/* #02 */
- /*inp*/ { 23, "%n %% %i", 123.00 },
- /*exp*/ { 0,1,22, "123,00 DM % 123,00 DEM" },
+ /*inp*/ { 24, "%n %% %i", 123.00 },
+ /*exp*/ { 0,1,23, "123,00 EUR % 123,00 EUR" },
},
{
/* #03 */
- /*inp*/ { 22, "%n %% %i", 123.00 },
+ /*inp*/ { 23, "%n %% %i", 123.00 },
/*exp*/ { E2BIG,1,-1, "" },
},
{
/* #04 */
- /*inp*/ { 30, "%n|%i", 1234.561 },
- /*exp*/ { 0,1,24, "1.234,56 DM|1.234,56 DEM" },
+ /*inp*/ { 31, "%n|%i", 1234.561 },
+ /*exp*/ { 0,1,25, "1.234,56 EUR|1.234,56 EUR"},
},
{
/* #05 */
- /*inp*/ { 32, "%n|%i", -1234.561 },
- /*exp*/ { 0,1,26, "-1.234,56 DM|-1.234,56 DEM"},
+ /*inp*/ { 33, "%n|%i", -1234.561 },
+ /*exp*/ { 0,1,27, "-1.234,56 EUR|-1.234,56 EUR"},
},
{
/* #06 */
- /*inp*/ { 32, "%12n|%12i", 1234.561 },
- /*exp*/ { 0,1,25, " 1.234,56 DM|1.234,56 DEM"},
+ /*inp*/ { 33, "%13n|%12i", 1234.561 },
+ /*exp*/ { 0,1,26, " 1.234,56 EUR|1.234,56 EUR"},
},
{
/* #07 */
- /*inp*/ { 32, "%12n|%12i", -1234.561 },
- /*exp*/ { 0,1,26, "-1.234,56 DM|-1.234,56 DEM"},
+ /*inp*/ { 33, "%12n|%12i", -1234.561 },
+ /*exp*/ { 0,1,27, "-1.234,56 EUR|-1.234,56 EUR"},
},
{
/* #08 */
- /*inp*/ { 32, "%#5n|%#5i", 1234.561 },
- /*exp*/ { 0,1,28, " 1.234,56 DM| 1.234,56 DEM"},
+ /*inp*/ { 33, "%#5n|%#5i", 1234.561 },
+ /*exp*/ { 0,1,29, " 1.234,56 EUR| 1.234,56 EUR"},
},
{
/* #09 */
- /*inp*/ { 32, "%#5n|%#5i", -1234.561 },
- /*exp*/ { 0,1,28, "- 1.234,56 DM|- 1.234,56 DEM"},
+ /*inp*/ { 33, "%#5n|%#5i", -1234.561 },
+ /*exp*/ { 0,1,29, "- 1.234,56 EUR|- 1.234,56 EUR"},
},
{
/* #10 */
- /*inp*/ { 32, "%=*#5n|%=*#5i", 1234.561 },
- /*exp*/ { 0,1,28, " *1.234,56 DM| *1.234,56 DEM"},
+ /*inp*/ { 33, "%=*#5n|%=*#5i", 1234.561 },
+ /*exp*/ { 0,1,29, " *1.234,56 EUR| *1.234,56 EUR"},
},
{
/* #11 */
- /*inp*/ { 32, "%=0#5n|%=0#5i", -1234.561 },
- /*exp*/ { 0,1,28, "-01.234,56 DM|-01.234,56 DEM"},
+ /*inp*/ { 33, "%=0#5n|%=0#5i", -1234.561 },
+ /*exp*/ { 0,1,29, "-01.234,56 EUR|-01.234,56 EUR"},
},
{
/* #12 */
- /*inp*/ { 32, "%^#5n|%^#5i", -1234.561 },
- /*exp*/ { 0,1,26, "- 1234,56 DM|- 1234,56 DEM"},
+ /*inp*/ { 33, "%^#5n|%^#5i", -1234.561 },
+ /*exp*/ { 0,1,27, "- 1234,56 EUR|- 1234,56 EUR"},
},
{
/* #13 */
- /*inp*/ { 32, "%#5.0n|%#5.0i", 1234.444 },
- /*exp*/ { 0,1,22, " 1.234 DM| 1.234 DEM" },
+ /*inp*/ { 33, "%#5.0n|%#5.0i", 1234.444 },
+ /*exp*/ { 0,1,23, " 1.234 EUR| 1.234 EUR" },
},
{
/* #14 */
- /*inp*/ { 32, "%#5.0n|%#5.4i", -1234.555 },
- /*exp*/ { 0,1,27, "- 1.235 DM|- 1.234,5550 DEM"},
+ /*inp*/ { 33, "%#5.0n|%#5.4i", -1234.555 },
+ /*exp*/ { 0,1,28, "- 1.235 EUR|- 1.234,5550 EUR"},
},
{
/* #15 */
- /*inp*/ { 32, "%(#5n|%!(#5i", -1234.561 },
- /*exp*/ { 0,1,26, "( 1.234,56 DM)|( 1.234,56)"},
+ /*inp*/ { 33, "%(#5n|%!(#5i", -1234.561 },
+ /*exp*/ { 0,1,27, "( 1.234,56 EUR)|( 1.234,56)"},
},
{ is_last: 1 }
}