服务器区域设置C vs en_US.UTF-8

我正在考虑改变我所有的服务器区域设置为C.

"export LC_ALL=C" 

这是常见的做法吗?

我想在LAMP服务器上会有什么副作用,或者我应该离开使用默认的“en_US.UTF-8”?

您可能要编辑/etc/default/locale来设置语言环境,因为导出命令只会影响当前的环境。 它不会影响已经运行的程序。

你提到的有关grep的问题早在几年前就已经确定:

 fixed in grep 2.7, released Sep 20, 2010 In multibyte locales, regular expressions including backreferences no longer exhibit quadratic complexity (ie, they are orders of magnitude faster). [bug present since multi-byte character set support was introduced in 2.5.2] In UTF-8 locales, regular expressions including "." can be orders of magnitude faster. For example, "grep ." is now twice as fast as "grep -v ^$", instead of being immensely slower. It remains slow in other multibyte locales. [bug present since multi-byte character set support was introduced in 2.5.2] 

http://savannah.gnu.org/forum/forum.php?forum_id=6521