Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user.catalan > #6147

Re: Format numeric local

From Ernest Adrogué <nr9@posteo.de>
Newsgroups linux.debian.user.catalan
Subject Re: Format numeric local
Date 2019-12-07 12:20 +0100
Message-ID <zaGhY-2Ed-9@gated-at.bofh.it> (permalink)
References <zaFvz-27R-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


2019-12- 7, 11:23 (+0100); Narcis Garcia escriu:
> Algú sap com és que, amb Debian 10, no em funcionen els exemples
> documentats al final d'aquesta pàgina?
> https://www.gnu.org/software/coreutils/manual/html_node/numfmt-invocation.html
> 
> També provo altres exemples trobats arreu del web sobre printf, però la
> separació de milers no em fa ni cas.

Hi ha un error en el fitxer ca_ES.  Aplicant el següent canvi ja
funciona

--- /usr/share/i18n/locales/ca_ES.orig	2019-12-07 12:05:29.988128644 +0100
+++ /usr/share/i18n/locales/ca_ES	2019-12-07 12:05:48.056228594 +0100
@@ -88,7 +88,7 @@
 LC_NUMERIC
 decimal_point        ","
 thousands_sep        "."
-grouping             0;0
+grouping             3;3
 END LC_NUMERIC
 
 LC_TIME


$ LC_ALL=ca_ES.utf8 numfmt --grouping 1000000000000,01
1.000.000.000.000,01

Back to linux.debian.user.catalan | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Format numeric local Narcis Garcia <debianlists@actiu.net> - 2019-12-07 11:30 +0100
  Re: Format numeric local Ernest Adrogué <nr9@posteo.de> - 2019-12-07 12:20 +0100
    Re: Format numeric local Narcis Garcia <debianlists@actiu.net> - 2019-12-07 13:40 +0100

csiph-web