From 8956ac9e979f950559b0b2d4f8a0726c70ceee8e Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Mon, 10 Apr 2000 05:13:54 +0000 Subject: Update. 2000-04-09 Ulrich Drepper * localedata/Makefile: Add rules to clean up directories created by new strfmon tests. 2000-04-09 Geoff Clare * localedata/tst-fmon.data: Added new tests for strfmon() using test locales with all combinations of cs_precedes, sign_posn and sep_by_space. * localedata/tst-fmon.sh: Updated to support the new tests. * localedata/tst-fmon-locales/tstfmon_n01y12: New file containing the localedef source for the new strfmon() test locale. * localedata/tst-fmon-locales/tstfmon_n02n40: Likewise. * localedata/tst-fmon-locales/tstfmon_n10y31: Likewise. * localedata/tst-fmon-locales/tstfmon_n11y41: Likewise. * localedata/tst-fmon-locales/tstfmon_n12y11: Likewise. * localedata/tst-fmon-locales/tstfmon_n20n32: Likewise. * localedata/tst-fmon-locales/tstfmon_n30y20: Likewise. * localedata/tst-fmon-locales/tstfmon_n41n00: Likewise. * localedata/tst-fmon-locales/tstfmon_y01y10: Likewise. * localedata/tst-fmon-locales/tstfmon_y02n22: Likewise. * localedata/tst-fmon-locales/tstfmon_y22n42: Likewise. * localedata/tst-fmon-locales/tstfmon_y30y21: Likewise. * localedata/tst-fmon-locales/tstfmon_y32n31: Likewise. * localedata/tst-fmon-locales/tstfmon_y40y00: Likewise. * localedata/tst-fmon-locales/tstfmon_y42n21: Likewise. * stdlib/strfmon.c: Correct problems with missing or extra spaces for unusual combinations of sign_posn and sep_by_space. Improved left-precision alignment code. --- localedata/tst-fmon-locales/tstfmon_n01y12 | 28 ++++++++++++++++++++++++++++ localedata/tst-fmon-locales/tstfmon_n02n40 | 28 ++++++++++++++++++++++++++++ localedata/tst-fmon-locales/tstfmon_n10y31 | 28 ++++++++++++++++++++++++++++ localedata/tst-fmon-locales/tstfmon_n11y41 | 28 ++++++++++++++++++++++++++++ localedata/tst-fmon-locales/tstfmon_n12y11 | 28 ++++++++++++++++++++++++++++ localedata/tst-fmon-locales/tstfmon_n20n32 | 28 ++++++++++++++++++++++++++++ localedata/tst-fmon-locales/tstfmon_n30y20 | 28 ++++++++++++++++++++++++++++ localedata/tst-fmon-locales/tstfmon_n41n00 | 28 ++++++++++++++++++++++++++++ localedata/tst-fmon-locales/tstfmon_y01y10 | 28 ++++++++++++++++++++++++++++ localedata/tst-fmon-locales/tstfmon_y02n22 | 28 ++++++++++++++++++++++++++++ localedata/tst-fmon-locales/tstfmon_y22n42 | 28 ++++++++++++++++++++++++++++ localedata/tst-fmon-locales/tstfmon_y30y21 | 28 ++++++++++++++++++++++++++++ localedata/tst-fmon-locales/tstfmon_y32n31 | 28 ++++++++++++++++++++++++++++ localedata/tst-fmon-locales/tstfmon_y40y00 | 28 ++++++++++++++++++++++++++++ localedata/tst-fmon-locales/tstfmon_y42n21 | 28 ++++++++++++++++++++++++++++ 15 files changed, 420 insertions(+) create mode 100644 localedata/tst-fmon-locales/tstfmon_n01y12 create mode 100644 localedata/tst-fmon-locales/tstfmon_n02n40 create mode 100644 localedata/tst-fmon-locales/tstfmon_n10y31 create mode 100644 localedata/tst-fmon-locales/tstfmon_n11y41 create mode 100644 localedata/tst-fmon-locales/tstfmon_n12y11 create mode 100644 localedata/tst-fmon-locales/tstfmon_n20n32 create mode 100644 localedata/tst-fmon-locales/tstfmon_n30y20 create mode 100644 localedata/tst-fmon-locales/tstfmon_n41n00 create mode 100644 localedata/tst-fmon-locales/tstfmon_y01y10 create mode 100644 localedata/tst-fmon-locales/tstfmon_y02n22 create mode 100644 localedata/tst-fmon-locales/tstfmon_y22n42 create mode 100644 localedata/tst-fmon-locales/tstfmon_y30y21 create mode 100644 localedata/tst-fmon-locales/tstfmon_y32n31 create mode 100644 localedata/tst-fmon-locales/tstfmon_y40y00 create mode 100644 localedata/tst-fmon-locales/tstfmon_y42n21 (limited to 'localedata/tst-fmon-locales') diff --git a/localedata/tst-fmon-locales/tstfmon_n01y12 b/localedata/tst-fmon-locales/tstfmon_n01y12 new file mode 100644 index 0000000000..f8fac3ca30 --- /dev/null +++ b/localedata/tst-fmon-locales/tstfmon_n01y12 @@ -0,0 +1,28 @@ +repertoiremap mnemonic.ds + +# One of a set of test locales for strfmon() + +# The six characters after the "_" in the locale name indicate +# the last six LC_MONETARY values below. + +LC_CTYPE +copy "POSIX" +END LC_CTYPE + +LC_MONETARY +int_curr_symbol "" +currency_symbol "" +mon_decimal_point "<.>" +mon_thousands_sep "<,>" +mon_grouping 3;3 +positive_sign "<+>" +negative_sign "<->" +int_frac_digits 2 +frac_digits 2 +p_cs_precedes 0 +p_sign_posn 0 +p_sep_by_space 1 +n_cs_precedes 1 +n_sign_posn 1 +n_sep_by_space 2 +END LC_MONETARY diff --git a/localedata/tst-fmon-locales/tstfmon_n02n40 b/localedata/tst-fmon-locales/tstfmon_n02n40 new file mode 100644 index 0000000000..be9ecf374f --- /dev/null +++ b/localedata/tst-fmon-locales/tstfmon_n02n40 @@ -0,0 +1,28 @@ +repertoiremap mnemonic.ds + +# One of a set of test locales for strfmon() + +# The six characters after the "_" in the locale name indicate +# the last six LC_MONETARY values below. + +LC_CTYPE +copy "POSIX" +END LC_CTYPE + +LC_MONETARY +int_curr_symbol "" +currency_symbol "" +mon_decimal_point "<.>" +mon_thousands_sep "<,>" +mon_grouping 3;3 +positive_sign "<+>" +negative_sign "<->" +int_frac_digits 2 +frac_digits 2 +p_cs_precedes 0 +p_sign_posn 0 +p_sep_by_space 2 +n_cs_precedes 0 +n_sign_posn 4 +n_sep_by_space 0 +END LC_MONETARY diff --git a/localedata/tst-fmon-locales/tstfmon_n10y31 b/localedata/tst-fmon-locales/tstfmon_n10y31 new file mode 100644 index 0000000000..47fe7b4241 --- /dev/null +++ b/localedata/tst-fmon-locales/tstfmon_n10y31 @@ -0,0 +1,28 @@ +repertoiremap mnemonic.ds + +# One of a set of test locales for strfmon() + +# The six characters after the "_" in the locale name indicate +# the last six LC_MONETARY values below. + +LC_CTYPE +copy "POSIX" +END LC_CTYPE + +LC_MONETARY +int_curr_symbol "" +currency_symbol "" +mon_decimal_point "<.>" +mon_thousands_sep "<,>" +mon_grouping 3;3 +positive_sign "<+>" +negative_sign "<->" +int_frac_digits 2 +frac_digits 2 +p_cs_precedes 0 +p_sign_posn 1 +p_sep_by_space 0 +n_cs_precedes 1 +n_sign_posn 3 +n_sep_by_space 1 +END LC_MONETARY diff --git a/localedata/tst-fmon-locales/tstfmon_n11y41 b/localedata/tst-fmon-locales/tstfmon_n11y41 new file mode 100644 index 0000000000..3a7f5dcf7f --- /dev/null +++ b/localedata/tst-fmon-locales/tstfmon_n11y41 @@ -0,0 +1,28 @@ +repertoiremap mnemonic.ds + +# One of a set of test locales for strfmon() + +# The six characters after the "_" in the locale name indicate +# the last six LC_MONETARY values below. + +LC_CTYPE +copy "POSIX" +END LC_CTYPE + +LC_MONETARY +int_curr_symbol "" +currency_symbol "" +mon_decimal_point "<.>" +mon_thousands_sep "<,>" +mon_grouping 3;3 +positive_sign "<+>" +negative_sign "<->" +int_frac_digits 2 +frac_digits 2 +p_cs_precedes 0 +p_sign_posn 1 +p_sep_by_space 1 +n_cs_precedes 1 +n_sign_posn 4 +n_sep_by_space 1 +END LC_MONETARY diff --git a/localedata/tst-fmon-locales/tstfmon_n12y11 b/localedata/tst-fmon-locales/tstfmon_n12y11 new file mode 100644 index 0000000000..c8cb113ffc --- /dev/null +++ b/localedata/tst-fmon-locales/tstfmon_n12y11 @@ -0,0 +1,28 @@ +repertoiremap mnemonic.ds + +# One of a set of test locales for strfmon() + +# The six characters after the "_" in the locale name indicate +# the last six LC_MONETARY values below. + +LC_CTYPE +copy "POSIX" +END LC_CTYPE + +LC_MONETARY +int_curr_symbol "" +currency_symbol "" +mon_decimal_point "<.>" +mon_thousands_sep "<,>" +mon_grouping 3;3 +positive_sign "<+>" +negative_sign "<->" +int_frac_digits 2 +frac_digits 2 +p_cs_precedes 0 +p_sign_posn 1 +p_sep_by_space 2 +n_cs_precedes 1 +n_sign_posn 1 +n_sep_by_space 1 +END LC_MONETARY diff --git a/localedata/tst-fmon-locales/tstfmon_n20n32 b/localedata/tst-fmon-locales/tstfmon_n20n32 new file mode 100644 index 0000000000..679d1fe9a6 --- /dev/null +++ b/localedata/tst-fmon-locales/tstfmon_n20n32 @@ -0,0 +1,28 @@ +repertoiremap mnemonic.ds + +# One of a set of test locales for strfmon() + +# The six characters after the "_" in the locale name indicate +# the last six LC_MONETARY values below. + +LC_CTYPE +copy "POSIX" +END LC_CTYPE + +LC_MONETARY +int_curr_symbol "" +currency_symbol "" +mon_decimal_point "<.>" +mon_thousands_sep "<,>" +mon_grouping 3;3 +positive_sign "<+>" +negative_sign "<->" +int_frac_digits 2 +frac_digits 2 +p_cs_precedes 0 +p_sign_posn 2 +p_sep_by_space 0 +n_cs_precedes 0 +n_sign_posn 3 +n_sep_by_space 2 +END LC_MONETARY diff --git a/localedata/tst-fmon-locales/tstfmon_n30y20 b/localedata/tst-fmon-locales/tstfmon_n30y20 new file mode 100644 index 0000000000..4d7f761078 --- /dev/null +++ b/localedata/tst-fmon-locales/tstfmon_n30y20 @@ -0,0 +1,28 @@ +repertoiremap mnemonic.ds + +# One of a set of test locales for strfmon() + +# The six characters after the "_" in the locale name indicate +# the last six LC_MONETARY values below. + +LC_CTYPE +copy "POSIX" +END LC_CTYPE + +LC_MONETARY +int_curr_symbol "" +currency_symbol "" +mon_decimal_point "<.>" +mon_thousands_sep "<,>" +mon_grouping 3;3 +positive_sign "<+>" +negative_sign "<->" +int_frac_digits 2 +frac_digits 2 +p_cs_precedes 0 +p_sign_posn 3 +p_sep_by_space 0 +n_cs_precedes 1 +n_sign_posn 2 +n_sep_by_space 0 +END LC_MONETARY diff --git a/localedata/tst-fmon-locales/tstfmon_n41n00 b/localedata/tst-fmon-locales/tstfmon_n41n00 new file mode 100644 index 0000000000..c50cd5642c --- /dev/null +++ b/localedata/tst-fmon-locales/tstfmon_n41n00 @@ -0,0 +1,28 @@ +repertoiremap mnemonic.ds + +# One of a set of test locales for strfmon() + +# The six characters after the "_" in the locale name indicate +# the last six LC_MONETARY values below. + +LC_CTYPE +copy "POSIX" +END LC_CTYPE + +LC_MONETARY +int_curr_symbol "" +currency_symbol "" +mon_decimal_point "<.>" +mon_thousands_sep "<,>" +mon_grouping 3;3 +positive_sign "<+>" +negative_sign "<->" +int_frac_digits 2 +frac_digits 2 +p_cs_precedes 0 +p_sign_posn 4 +p_sep_by_space 1 +n_cs_precedes 0 +n_sign_posn 0 +n_sep_by_space 0 +END LC_MONETARY diff --git a/localedata/tst-fmon-locales/tstfmon_y01y10 b/localedata/tst-fmon-locales/tstfmon_y01y10 new file mode 100644 index 0000000000..fa3dffec88 --- /dev/null +++ b/localedata/tst-fmon-locales/tstfmon_y01y10 @@ -0,0 +1,28 @@ +repertoiremap mnemonic.ds + +# One of a set of test locales for strfmon() + +# The six characters after the "_" in the locale name indicate +# the last six LC_MONETARY values below. + +LC_CTYPE +copy "POSIX" +END LC_CTYPE + +LC_MONETARY +int_curr_symbol "" +currency_symbol "" +mon_decimal_point "<.>" +mon_thousands_sep "<,>" +mon_grouping 3;3 +positive_sign "<+>" +negative_sign "<->" +int_frac_digits 2 +frac_digits 2 +p_cs_precedes 1 +p_sign_posn 0 +p_sep_by_space 1 +n_cs_precedes 1 +n_sign_posn 1 +n_sep_by_space 0 +END LC_MONETARY diff --git a/localedata/tst-fmon-locales/tstfmon_y02n22 b/localedata/tst-fmon-locales/tstfmon_y02n22 new file mode 100644 index 0000000000..9a1dd61a13 --- /dev/null +++ b/localedata/tst-fmon-locales/tstfmon_y02n22 @@ -0,0 +1,28 @@ +repertoiremap mnemonic.ds + +# One of a set of test locales for strfmon() + +# The six characters after the "_" in the locale name indicate +# the last six LC_MONETARY values below. + +LC_CTYPE +copy "POSIX" +END LC_CTYPE + +LC_MONETARY +int_curr_symbol "" +currency_symbol "" +mon_decimal_point "<.>" +mon_thousands_sep "<,>" +mon_grouping 3;3 +positive_sign "" +negative_sign "" +int_frac_digits 2 +frac_digits 2 +p_cs_precedes 1 +p_sign_posn 0 +p_sep_by_space 2 +n_cs_precedes 0 +n_sign_posn 2 +n_sep_by_space 2 +END LC_MONETARY diff --git a/localedata/tst-fmon-locales/tstfmon_y22n42 b/localedata/tst-fmon-locales/tstfmon_y22n42 new file mode 100644 index 0000000000..f12d533914 --- /dev/null +++ b/localedata/tst-fmon-locales/tstfmon_y22n42 @@ -0,0 +1,28 @@ +repertoiremap mnemonic.ds + +# One of a set of test locales for strfmon() + +# The six characters after the "_" in the locale name indicate +# the last six LC_MONETARY values below. + +LC_CTYPE +copy "POSIX" +END LC_CTYPE + +LC_MONETARY +int_curr_symbol "" +currency_symbol "" +mon_decimal_point "<.>" +mon_thousands_sep "<,>" +mon_grouping 3;3 +positive_sign "<+>" +negative_sign "<->" +int_frac_digits 2 +frac_digits 2 +p_cs_precedes 1 +p_sign_posn 2 +p_sep_by_space 2 +n_cs_precedes 0 +n_sign_posn 4 +n_sep_by_space 2 +END LC_MONETARY diff --git a/localedata/tst-fmon-locales/tstfmon_y30y21 b/localedata/tst-fmon-locales/tstfmon_y30y21 new file mode 100644 index 0000000000..d7775833dd --- /dev/null +++ b/localedata/tst-fmon-locales/tstfmon_y30y21 @@ -0,0 +1,28 @@ +repertoiremap mnemonic.ds + +# One of a set of test locales for strfmon() + +# The six characters after the "_" in the locale name indicate +# the last six LC_MONETARY values below. + +LC_CTYPE +copy "POSIX" +END LC_CTYPE + +LC_MONETARY +int_curr_symbol "" +currency_symbol "" +mon_decimal_point "<.>" +mon_thousands_sep "<,>" +mon_grouping 3;3 +positive_sign "<+>" +negative_sign "<->" +int_frac_digits 2 +frac_digits 2 +p_cs_precedes 1 +p_sign_posn 3 +p_sep_by_space 0 +n_cs_precedes 1 +n_sign_posn 2 +n_sep_by_space 1 +END LC_MONETARY diff --git a/localedata/tst-fmon-locales/tstfmon_y32n31 b/localedata/tst-fmon-locales/tstfmon_y32n31 new file mode 100644 index 0000000000..093341ca46 --- /dev/null +++ b/localedata/tst-fmon-locales/tstfmon_y32n31 @@ -0,0 +1,28 @@ +repertoiremap mnemonic.ds + +# One of a set of test locales for strfmon() + +# The six characters after the "_" in the locale name indicate +# the last six LC_MONETARY values below. + +LC_CTYPE +copy "POSIX" +END LC_CTYPE + +LC_MONETARY +int_curr_symbol "" +currency_symbol "" +mon_decimal_point "<.>" +mon_thousands_sep "<,>" +mon_grouping 3;3 +positive_sign "<+>" +negative_sign "<->" +int_frac_digits 2 +frac_digits 2 +p_cs_precedes 1 +p_sign_posn 3 +p_sep_by_space 2 +n_cs_precedes 0 +n_sign_posn 3 +n_sep_by_space 1 +END LC_MONETARY diff --git a/localedata/tst-fmon-locales/tstfmon_y40y00 b/localedata/tst-fmon-locales/tstfmon_y40y00 new file mode 100644 index 0000000000..5e4cf12b2a --- /dev/null +++ b/localedata/tst-fmon-locales/tstfmon_y40y00 @@ -0,0 +1,28 @@ +repertoiremap mnemonic.ds + +# One of a set of test locales for strfmon() + +# The six characters after the "_" in the locale name indicate +# the last six LC_MONETARY values below. + +LC_CTYPE +copy "POSIX" +END LC_CTYPE + +LC_MONETARY +int_curr_symbol "" +currency_symbol "" +mon_decimal_point "<.>" +mon_thousands_sep "<,>" +mon_grouping 3;3 +positive_sign "<+>" +negative_sign "<->" +int_frac_digits 2 +frac_digits 2 +p_cs_precedes 1 +p_sign_posn 4 +p_sep_by_space 0 +n_cs_precedes 1 +n_sign_posn 0 +n_sep_by_space 0 +END LC_MONETARY diff --git a/localedata/tst-fmon-locales/tstfmon_y42n21 b/localedata/tst-fmon-locales/tstfmon_y42n21 new file mode 100644 index 0000000000..3dcf4a38d8 --- /dev/null +++ b/localedata/tst-fmon-locales/tstfmon_y42n21 @@ -0,0 +1,28 @@ +repertoiremap mnemonic.ds + +# One of a set of test locales for strfmon() + +# The six characters after the "_" in the locale name indicate +# the last six LC_MONETARY values below. + +LC_CTYPE +copy "POSIX" +END LC_CTYPE + +LC_MONETARY +int_curr_symbol "" +currency_symbol "" +mon_decimal_point "<.>" +mon_thousands_sep "<,>" +mon_grouping 3;3 +positive_sign "<+>" +negative_sign "<->" +int_frac_digits 2 +frac_digits 2 +p_cs_precedes 1 +p_sign_posn 4 +p_sep_by_space 2 +n_cs_precedes 0 +n_sign_posn 2 +n_sep_by_space 1 +END LC_MONETARY -- cgit 1.4.1