This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH 1/1] Fix p_cs_precedes for mt_MT
- From: Mike FABIAN <mfabian at redhat dot com>
- To: Akhilesh Kumar <akhilesh dot k at samsung dot com>
- Cc: libc-alpha at sourceware dot org
- Date: Tue, 08 Aug 2017 09:39:19 +0200
- Subject: Re: [PATCH 1/1] Fix p_cs_precedes for mt_MT
- Authentication-results: sourceware.org; auth=none
- Authentication-results: ext-mx08.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com
- Authentication-results: ext-mx08.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=mfabian at redhat dot com
- Dmarc-filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 8FC6DC0587C8
- References: <CGME20170808055627epcas5p172ce10282313e04affb3236a56cad542@epcas5p1.samsung.com> <1502171498-7420-1-git-send-email-akhilesh.k@samsung.com>
Akhilesh Kumar <akhilesh.k@samsung.com> wrote:
> Reference :-
> Maltese Style Guide (mlt-mlt-styleguide.pdf doc)
> [#BZ 21920]
The # should be in front of the bug number, like [BZ #21920]
> Positive Currency Format €500.00
http://www.kunsilltalmalti.gov.mt/filebank/documents/rapportdwarlismijiettalmunitaewropea.pdf
on page 7, at the top right, agrees.
> locales/mt_MT(LC_MONETARY) : Fix p_cs_precedes/n_cs_precedes
> ---
> localedata/locales/mt_MT | 4 ++--
> 1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/localedata/locales/mt_MT b/localedata/locales/mt_MT
> index dd0ab3c..51a4c55 100644
> --- a/localedata/locales/mt_MT
> +++ b/localedata/locales/mt_MT
> @@ -148,9 +148,9 @@ positive_sign ""
> negative_sign "<U002D>"
> int_frac_digits 2
> frac_digits 2
> -p_cs_precedes 0
> +p_cs_precedes 1
> p_sep_by_space 0
> -n_cs_precedes 0
> +n_cs_precedes 1
> n_sep_by_space 0
> p_sign_posn 1
> n_sign_posn 0
n_sign_posn should be 1, I think:
https://www.gnu.org/software/libc/manual/html_mono/libc.html#General-Numeric
says:
> 0
>
> The currency symbol and quantity should be surrounded by parentheses.
> 1
>
> Print the sign string before the quantity and currency symbol.
--
Mike FABIAN <mfabian@redhat.com>