- 论坛徽章:
- 0
|
回复 89# hellioncu
也许你是对的,但是我是在弄不清locale对他们的影响。我最开始注意到这个东西的时候,还是在看toupper的manpage的BUGS一节
BUGS
The details of what constitutes an uppercase or lowercase letter depend on the current locale. For example, the default "C" locale does
not know about umlauts, so no conversion is done for them.
In some non-English locales, there are lowercase letters with no corresponding uppercase equivalent; the German sharp s is one example.
所以,我感觉上,有些东西,在弄不清到底怎么回事的情况下,自己实现,也许更保险一些,起码能保证正确性。
当然,我的前提是在弄不清locale的影响的前提下的。如果能弄清楚,当然是提倡使用的。 |
|