Re: sort case intermixed but leading dot not

gregory mott <[email protected]> 21 Jun 2003 07:05:14 +0100
Newsgroups gmane.comp.gnu.fileutils.bugs
Message-ID <[email protected]>
On Thu, 2003-06-12 at 09:06, gregory mott wrote: 
> On Thu, 2003-06-12 at 02:30, David T-G wrote:
> > On Wed, 2003-06-11 at 22:05, gregory mott wrote:
> > % since you also mention locale i will also mention that i do have a
> > % personal locale i made just for the purpose of sorting things the way i
> > % want.  my locale sorts case intermixed.  i was floored that sorting case
> > % intermixed just wasn't available until i cooked up a locale for myself,
> > 
> > What, en_US doesn't work for you?  That's what put me *on* this list :-)
> 
> uh, it's been awhile since i went thru that exercise but iirc when
> trying the various available locales i was able to get either both case
> and leading dot files intermixed or neither.  what i want is case
> intermixed but leading dot not.
> 
> > % but it was a nice little exercise.  and when i want case nonintermixed,
> > % all i have to do is specify ls -v, which sorts everything the Right Way.
> > 
> > Nice, indeed.

On Thu, 2003-06-12 at 11:53, David T-G wrote:
> ... as well as to put up a page somewhere
> detailing the locale you've created (sounds interesting!).

well since that's not likely anymonth soon, i'll at least be happy to
drop it here:

--->  /usr/share/i18n/locales/g  <---
# build with:
# localedef -i g -c g
#
# i want things sorted case intermixed,
# with other characters doing a simple ASCII sort,
# in particular NOT intermixing leading dot.
LC_COLLATE
order_start forward
<U0000>
<U0001>
<U0002>
<U0003>
<U0004>
<U0005>
<U0006>
<U0007>
<U0008>
<U0009>
<U000A>
<U000B>
<U000C>
<U000D>
<U000E>
<U000F>
<U0010>
<U0011>
<U0012>
<U0013>
<U0014>
<U0015>
<U0016>
<U0017>
<U0018>
<U0019>
<U001A>
<U001B>
<U001C>
<U001D>
<U001E>
<U001F>
<U0020>
<U0021>
<U0022>
<U0023>
<U0024>
<U0025>
<U0026>
<U0027>
<U0028>
<U0029>
<U002A>
<U002B>
<U002C>
<U002D>
<U002E>
<U002F>
<U0030>
<U0031>
<U0032>
<U0033>
<U0034>
<U0035>
<U0036>
<U0037>
<U0038>
<U0039>
<U003A>
<U003B>
<U003C>
<U003D>
<U003E>
<U003F>
<U0040>
<U0041>	<U0041>;<U0041>
<U0061>	<U0041>;<U0061>
<U0042>	<U0042>;<U0042>
<U0062>	<U0042>;<U0062>
<U0043>	<U0043>;<U0043>
<U0063>	<U0043>;<U0063>
<U0044>	<U0044>;<U0044>
<U0064>	<U0044>;<U0064>
<U0045>	<U0045>;<U0045>
<U0065>	<U0045>;<U0065>
<U0046>	<U0046>;<U0046>
<U0066>	<U0046>;<U0066>
<U0047>	<U0047>;<U0047>
<U0067>	<U0047>;<U0067>
<U0048>	<U0048>;<U0048>
<U0068>	<U0048>;<U0068>
<U0049>	<U0049>;<U0049>
<U0069>	<U0049>;<U0069>
<U004A>	<U004A>;<U004A>
<U006A>	<U004A>;<U006A>
<U004B>	<U004B>;<U004B>
<U006B>	<U004B>;<U006B>
<U004C>	<U004C>;<U004C>
<U006C>	<U004C>;<U006C>
<U004D>	<U004D>;<U004D>
<U006D>	<U004D>;<U006D>
<U004E>	<U004E>;<U004E>
<U006E>	<U004E>;<U006E>
<U004F>	<U004F>;<U004F>
<U006F>	<U004F>;<U006F>
<U0050>	<U0050>;<U0050>
<U0070>	<U0050>;<U0070>
<U0051>	<U0051>;<U0051>
<U0071>	<U0051>;<U0071>
<U0052>	<U0052>;<U0052>
<U0072>	<U0052>;<U0072>
<U0053>	<U0053>;<U0053>
<U0073>	<U0053>;<U0073>
<U0054>	<U0054>;<U0054>
<U0074>	<U0054>;<U0074>
<U0055>	<U0055>;<U0055>
<U0075>	<U0055>;<U0075>
<U0056>	<U0056>;<U0056>
<U0076>	<U0056>;<U0076>
<U0057>	<U0057>;<U0057>
<U0077>	<U0057>;<U0077>
<U0058>	<U0058>;<U0058>
<U0078>	<U0058>;<U0078>
<U0059>	<U0059>;<U0059>
<U0079>	<U0059>;<U0079>
<U005A>	<U005A>;<U005A>
<U007A>	<U005A>;<U007A>
<U0060>
<U005B>
<U005C>
<U005D>
<U005E>
<U005F>
<U007B>
<U007C>
<U007D>
<U007E>
<U007F>
UNDEFINED
order_end
END LC_COLLATE

# i want date and time the way i believe they Should Be, like this:
# 2003/06/20 21:27:54
LC_TIME
d_fmt   "<U0025><U0059><U002F><U0025><U006D><U002F><U0025><U0064>"
END LC_TIME