Sort performance degrades when LANG is set to en_US.utf8 in Red Hat Enterprise Linux?

Solution Verified - Updated -

Issue

  • Sort performance on a file degrades significantly when the LANG environment variable is set to en_US.utf8. When it is set to C, the performance markedly improves.
  • Why some POSIX compliant commands do not work properly when the LANG and LC variables are not set to C.

Environment

  • Red Hat Enterprise Linux (RHEL) all versions.
  • Specifically visible for GNU POSIX compliant commands.

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.