<br><br><div class="gmail_quote">On 17 June 2010 06:49, Bryan J. Smith <span dir="ltr"><<a href="mailto:b.j.smith@ieee.org">b.j.smith@ieee.org</a>></span> wrote:</div><div class="gmail_quote"><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">Nico Kadel-Garcia <<a href="mailto:nkadel@gmail.com">nkadel@gmail.com</a>> wrote: </div></blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im"></div><div class="im">
> Yeah. I'm a big believer in setting "LANG=C" or "LANG=POSIX" by<br>
> default. This makes old man pages work better, and fixes<br>
> the case-insensitive "sort" problem, unlike the RHEL standard<br>
> "en_US.UTF8". What fool decided that standard should be<br>
> case insensitive, I'd like to know?<br>
<br>
</div>[...]<br>
<br>
Sometimes it's just best to follow the upstream standard, and<br>
not try to do otherwise, especially when it is very trusted.<br></blockquote><div><br></div><div>But sometimes it's not the easiest thing to trust upstream to do what's right when bugs that affect all distros go unfixed for years.  e.g.</div>
<div><br></div><div><div>[john@dsv03-pv1 ~]$ echo $LANG</div><div>en_GB.UTF-8</div><div>[john@dsv03-pv1 ~]$ time grep '^....' /usr/share/dict/words >/dev/null</div><div><br></div><div>real<span class="Apple-tab-span" style="white-space:pre">      </span>9m29.275s</div>
<div>user<span class="Apple-tab-span" style="white-space:pre">  </span>9m29.055s</div><div>sys<span class="Apple-tab-span" style="white-space:pre"> </span>0m0.043s</div></div><div><br></div><div>And it pegs my CPU at 100%.   Compare this to...</div>
<div><br></div><div><div>[john@dsv03-pv1 ~]$ export LANG=C</div><div>[john@dsv03-pv1 ~]$ time grep '^....' /usr/share/dict/words >/dev/null</div><div><br></div><div>real<span class="Apple-tab-span" style="white-space:pre">     </span>0m0.116s</div>
<div>user<span class="Apple-tab-span" style="white-space:pre">  </span>0m0.107s</div><div>sys<span class="Apple-tab-span" style="white-space:pre">  </span>0m0.006s</div></div><div><br></div><div><br></div><div>This little gem has been hanging around since 2005 (<a href="http://savannah.gnu.org/bugs/?14472">http://savannah.gnu.org/bugs/?14472</a>)</div>
<div><br></div><div>John</div><div><br></div><div><br></div></div>