This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH 1/1] Fix LC_MONETARY for tpi_PG
- 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: Mon, 14 Aug 2017 16:26:50 +0200
- Subject: Re: [PATCH 1/1] Fix LC_MONETARY for tpi_PG
- Authentication-results: sourceware.org; auth=none
- Authentication-results: ext-mx02.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com
- Authentication-results: ext-mx02.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 EE6C97CB8F
- References: <CGME20170814124415epcas5p1c636c3592ba0a749a0dfb828cab545f3@epcas5p1.samsung.com> <1502714371-37847-1-git-send-email-akhilesh.k@samsung.com>
Akhilesh Kumar <akhilesh.k@samsung.com> wrote:
> Reference
> https://en.wikipedia.org/wiki/Papua_New_Guinean_kina
>
> [SZ #21961]
> locales/tpi_PG(LC_MONETARY) : Fix p_cs_precedes,n_cs_precedes
> p_sign_posn and n_sign_posn
> ---
> localedata/locales/tpi_PG | 14 +++++++-------
> 1 files changed, 7 insertions(+), 7 deletions(-)
>
> diff --git a/localedata/locales/tpi_PG b/localedata/locales/tpi_PG
> index 4f604dd..524c6e7 100644
> --- a/localedata/locales/tpi_PG
> +++ b/localedata/locales/tpi_PG
> @@ -15,8 +15,8 @@ tel ""
> fax ""
> language "Tok Pisin"
> territory "Papua New Guinea"
> -revision "0.1"
> -date "2017-03-21"
> +revision "0.2"
> +date "2017-08-14"
>
> category "i18n:2012";LC_IDENTIFICATION
> category "i18n:2012";LC_CTYPE
> @@ -144,15 +144,15 @@ mon_grouping 3
> positive_sign ""
> negative_sign "<U002D>"
> int_frac_digits 2
> -frac_digits 2
> -p_cs_precedes 1
> +frac_digits 2
> +p_cs_precedes 0
> int_p_sep_by_space 1
> p_sep_by_space 1
> -n_cs_precedes 1
> +n_cs_precedes 0
I cannot see on the Wikipedia page you refer to that
the currency symbol follows the monetary quantity.
Although when looking at https://www.bankpng.gov.pg/
(which is mentioned on the Wikipedia page) I have the impression
that this is the case.
> int_n_sep_by_space 1
> n_sep_by_space 1
> -p_sign_posn 1
> -n_sign_posn 1
> +p_sign_posn 0
> +n_sign_posn 0
http://pubs.opengroup.org/onlinepubs/009695399/basedefs/xbd_chap07.html
p_sign_posn
An integer set to a value indicating the positioning of the positive_sign for a monetary quantity with a non-negative value. The following integer values shall be recognized for int_n_sign_posn, int_p_sign_posn, n_sign_posn, and p_sign_posn:
0
Parentheses enclose the quantity and the currency_symbol.
1
The sign string precedes the quantity and the currency_symbol.
2
The sign string succeeds the quantity and the currency_symbol.
3
The sign string precedes the currency_symbol.
4
The sign string succeeds the currency_symbol.
n_sign_posn
An integer set to a value indicating the positioning of the
negative_sign for a negative formatted monetary quantity.
I cannot find anything in the Wikipedia page you give as a reference
which indicates that parentheses enclose the quantity and the currency
symbol.
> END LC_MONETARY
>
> LC_PAPER
--
Mike FABIAN <mfabian@redhat.com>