bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: locale specific ordering in EN_US -- why is a<A<b<B<y<Y<z<Z?


From: Johannes Meixner
Subject: Re: locale specific ordering in EN_US -- why is a<A<b<B<y<Y<z<Z?
Date: Fri, 28 Jun 2013 11:23:53 +0200 (CEST)
User-agent: Alpine 2.00 (LNX 1167 2008-08-23)


Hello,

On Jun 27 15:19 Chet Ramey wrote:
On 6/27/13 8:11 AM, Johannes Meixner wrote:

I do not care too much which kind of locale specific ordering
or collating or regex behaviour is actually implemented
as long as it works consistently in grep, gawk, sed, bash,...

This is Arnold's goal.  And I would add to it that we need the different
programs to work consistently across different platforms.  I, for one,
am interested in platforms other than Linux.

I am really not an expert here but I think the only really reliable
working way to make different programs work consistently across
different platforms is to implement the desired behaviour as same
source code directly in the different programs.

I think any kind of indirection (i.e. any way of using other source
code e.g. by importing source code or by calling library functions
that have been compiled from other source code) makes it impossible
for the authors of the different programs to ensure that their
programs work in compliance with their desired behaviour.

Of course there will be complaints because it is not the
best possible way when several different programs implement
the same functionality again and again each one on its own
and of course there will be advice that this or that
"common stuff" (code or library) must be used instead.

But such complaints and advice is pointless as long as the
"common stuff" does not ensure that the different programs
actually work consistently across different platforms.

Perhaps the authors of the different programs could make
their own library that implements their desired behaviour
so that there is only one source code and enforce linking
with their library?

From my point of view a primary question is:

What matters more:
Consistent behaviour for all users across different platforms.
Inconsistent behaviour implemented in an "officially blessed" way.


Kind Regards
Johannes Meixner
--
SUSE LINUX Products GmbH -- Maxfeldstrasse 5 -- 90409 Nuernberg -- Germany
HRB 16746 (AG Nuernberg) GF: Jeff Hawn, Jennifer Guild, Felix Imendoerffer



reply via email to

[Prev in Thread] Current Thread [Next in Thread]