GNU bug report logs -
#16838
Confusing localization of seq
Previous Next
Reported by: Göran Uddeborg <goeran <at> uddeborg.se>
Date: Fri, 21 Feb 2014 22:50:02 UTC
Severity: normal
Tags: wontfix
Done: Assaf Gordon <assafgordon <at> gmail.com>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 16838 in the body.
You can then email your comments to 16838 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-coreutils <at> gnu.org
:
bug#16838
; Package
coreutils
.
(Fri, 21 Feb 2014 22:50:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Göran Uddeborg <goeran <at> uddeborg.se>
:
New bug report received and forwarded. Copy sent to
bug-coreutils <at> gnu.org
.
(Fri, 21 Feb 2014 22:50:03 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
It seems the input arguments of "seq" are not localized, but the
output is. I was surprised to find this, and thought I'd ask here if
it is an intentional decision.
More specifically, I'm using the Swedish locale, where the radix
character is a comma. The arguments to "seq" does not accept a comma,
but the output is written using it.
mimmi$ env LANG=sv_SE.utf8 seq 1 0.3 2
1,0
1,3
1,6
1,9
I realized this using coreutils-8.21 on Fedora.
Information forwarded
to
bug-coreutils <at> gnu.org
:
bug#16838
; Package
coreutils
.
(Sat, 22 Feb 2014 01:55:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 16838 <at> debbugs.gnu.org (full text, mbox):
On 02/21/2014 10:48 PM, Göran Uddeborg wrote:
> It seems the input arguments of "seq" are not localized, but the
> output is. I was surprised to find this, and thought I'd ask here if
> it is an intentional decision.
>
> More specifically, I'm using the Swedish locale, where the radix
> character is a comma. The arguments to "seq" does not accept a comma,
> but the output is written using it.
>
> mimmi$ env LANG=sv_SE.utf8 seq 1 0.3 2
> 1,0
> 1,3
> 1,6
> 1,9
>
> I realized this using coreutils-8.21 on Fedora.
That is an unfortunate asymmetry, though founded in pragmatism.
Similarly date(1) for example can't parse
the localized output that it can itself generate.
Do we really want to complicate the code
to support the many different numeric formats,
including different grouping sizes, grouping characters,
alternative digits like ۱٬۲۳۴ etc.?
More important to code complexity is the
simplification of the interface by restricting
the input to a subset format and only considering
localized output at the final step for presentation.
Now rather than consider changing these _programmatic_ interfaces,
we might support conversion of localized input in an explicit
entry point to the system. We could isolate that
functionality in the new numfmt utility, which could
be updated to support these asymmetric localization conversions.
thanks,
Pádraig.
Added tag(s) wontfix.
Request was from
Assaf Gordon <assafgordon <at> gmail.com>
to
control <at> debbugs.gnu.org
.
(Thu, 11 Oct 2018 22:16:06 GMT)
Full text and
rfc822 format available.
bug closed, send any further explanations to
16838 <at> debbugs.gnu.org and Göran Uddeborg <goeran <at> uddeborg.se>
Request was from
Assaf Gordon <assafgordon <at> gmail.com>
to
control <at> debbugs.gnu.org
.
(Thu, 11 Oct 2018 22:16:06 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Fri, 09 Nov 2018 12:24:07 GMT)
Full text and
rfc822 format available.
This bug report was last modified 6 years and 221 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.