Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user.catalan > #6146 > unrolled thread
| Started by | Narcis Garcia <debianlists@actiu.net> |
|---|---|
| First post | 2019-12-07 11:30 +0100 |
| Last post | 2019-12-07 13:40 +0100 |
| Articles | 3 — 2 participants |
Back to article view | Back to linux.debian.user.catalan
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
| From | Narcis Garcia <debianlists@actiu.net> |
|---|---|
| Date | 2019-12-07 11:30 +0100 |
| Subject | Format numeric local |
| Message-ID | <zaFvz-27R-1@gated-at.bofh.it> |
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. $ locale LANG=ca_ES.UTF-8 LANGUAGE=ca_ES.UTF-8:es_ES.UTF-8 LC_CTYPE="ca_ES.UTF-8" LC_NUMERIC="ca_ES.UTF-8" LC_TIME="ca_ES.UTF-8" LC_COLLATE="ca_ES.UTF-8" LC_MONETARY="ca_ES.UTF-8" LC_MESSAGES="ca_ES.UTF-8" LC_PAPER="ca_ES.UTF-8" LC_NAME="ca_ES.UTF-8" LC_ADDRESS="ca_ES.UTF-8" LC_TELEPHONE="ca_ES.UTF-8" LC_MEASUREMENT="ca_ES.UTF-8" LC_IDENTIFICATION="ca_ES.UTF-8" LC_ALL= -- __________ I'm using this express-made address because personal addresses aren't masked enough at this mail public archive. Public archive administrator should fix this against automated addresses collectors.
[toc] | [next] | [standalone]
| From | Ernest Adrogué <nr9@posteo.de> |
|---|---|
| Date | 2019-12-07 12:20 +0100 |
| Message-ID | <zaGhY-2Ed-9@gated-at.bofh.it> |
| In reply to | #6146 |
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
[toc] | [prev] | [next] | [standalone]
| From | Narcis Garcia <debianlists@actiu.net> |
|---|---|
| Date | 2019-12-07 13:40 +0100 |
| Message-ID | <zaHxn-3kp-7@gated-at.bofh.it> |
| In reply to | #6147 |
__________ I'm using this express-made address because personal addresses aren't masked enough at this mail public archive. Public archive administrator should fix this against automated addresses collectors. El 7/12/19 a les 12:13, Ernest Adrogué ha escrit: > 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 > Gràcies per l'arranjament. Mentrestant jo ja m'estava fent una funció en ShellScript, donat que el problema també l'he trobat a Ubuntu LTS (18.04).
[toc] | [prev] | [standalone]
Back to top | Article view | linux.debian.user.catalan
csiph-web