Web lists-archives.com

Re: EXTERNAL: Re: sort utility goes berzerk (x86_64)




On 11/28/2017 04:04 AM, Corinna Vinschen wrote:
On Nov 28 08:21, Houder wrote:
On 2017-11-25 14:23, Houder wrote:
Hi,

Anyone seeing this as well? sort goes berzerk on my system when piped
into
head (or less) when it is fed with a 'specially prepared' input file.

  - only happens on x86_64
  - does not happen for 'LC_COLLATE=C sort tt | head'

'specially prepared' input file? (see bottom of post).
Anyone ** NOT ** seeing this?
Yes.  I just tried it under tcsh and bash with 6000, 8000, and 8150 lines,
and it works for me.  LANG=en_US.UTF-8 implies LC_COLLATE=en_US.UTF-8
but I also set LC_COLLATE explicitely and retried.  sort tt | head
always prints

   abcde    1xxxxx0123456789
   abcde    2xxxxx0123456789
   abcde    3xxxxx0123456789
   abcde    4xxxxx0123456789
   abcde    5xxxxx0123456789
   abcde    6xxxxx0123456789
   abcde    7xxxxx0123456789
   abcde    8xxxxx0123456789
   abcde    9xxxxx0123456789
   abcde   10xxxxx0123456789

and then returns to the prompt.
Same here, at least using bash

Corinna


--
Roger Wells, P.E.
leidos
221 Third St
Newport, RI 02840
401-847-4210 (voice)
401-849-1585 (fax)
roger.k.wells@xxxxxxxxxx


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple