This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 1/1] Fix LC_MONETARY for tpi_PG


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>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]