News for hackers. Stuff that matters.
Re:Glibc: [0-9] matches ¼ ١ 2 〣 and others, but not 9 (and o... by rwmj on Wednesday July 18, 2018 @02:46PM (#17561027)
In all the scripted tests we write, one of the first lines will be:

    export LANG=C
A similar construct is also used in most places where we call sort (except where we're actually sorting strings of text that will be read by an end user), eg:

    <some source of data> | LANG=C sort
Re:Glibc: [0-9] matches ¼ ١ 2 〣 and others, but not 9 (and o... by jwilk on Wednesday July 18, 2018 @06:39PM (#17562619)
Setting LANG=C is not sufficient, because LANG can be overridden by various LC_* variables.

You should set LC_ALL=C instead.

Re:Glibc: [0-9] matches ¼ ١ 2 〣 and others, but not 9 (and o... by usr1106 on Thursday July 19, 2018 @01:39PM (#17568665)
LC_COLLATE is the critical category according to the bug report. No need to set anything else.
Re:Glibc: [0-9] matches ¼ ١ 2 〣 and others, but not 9 (and o... by jwilk on Thursday July 19, 2018 @07:16PM (#17571195)
It's not enough if LC_ALL is already set in environment, sice that would override LC_COLLATE.

So just set LC_ALL and be done with it. It's bulletproof.