This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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:

Anyone seeing this as well? sort goes berzerk on my system when piped
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


Roger Wells, P.E.
221 Third St
Newport, RI 02840
401-847-4210 (voice)
401-849-1585 (fax)

Problem reports:
Unsubscribe info:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]