bug-gnu-utils
[Top][All Lists]
Advanced

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

strcoll problem?


From: Paul E. Black
Subject: strcoll problem?
Date: Thu, 14 Mar 2002 13:29:06 -0500

I had a, um, difference of opinion with sort (textutils) 2.0.21 that I 
traced to strcoll: space is ordered in strange (to me) ways depending
on the context.  Here it is between "s" and "t":

$ more sortbug
  SP
sBSP
tBSP
$ sort sortbug
sBSP
  SP
tBSP

and in this context between "R" and "s":

$ more sortbug3
 S
RS
sS
$ sort sortbug3
RS
 S
sS

Is this correct (or acceptable) behavior?  If so, why?

I read through ISO 14651, and I understand the Common Template Table 
to say SPACE has a first level weight lower than s or t, whereas the 
symbol for space or blank has a first level weight higher than either.

LC_ALL is not set.  When I set it to "C", sort works as expected. I
am running Dell-installed Red Hat Linux 7.1

-paul-
-- 
Paul E. Black (address@hidden)



reply via email to

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