[PATCH] More robust external diff output handling
Dmitry Vasiliev
lists at hlabs.spb.ru
Fri Nov 10 08:50:10 GMT 2006
Wouter van Heyst wrote:
> On Thu, Nov 09, 2006 at 06:19:10PM +0300, Dmitry Vasiliev wrote:
>> On Mandrake 10.1 with non-C locale settings external diff ignores LANG=C
>> environment variable. I guess such behavior is because of all LC_*
>> variables are also set and so LANG value is overridden. The attached patch
>> fixed it by setting also LC_ALL=C variable so the diff output now should be
>> handled more robustly within non-C environment.
>
> LANGUAGE and LC_CTYPE get unset, LANG was C. To what exactly does diff
> pay attention to outside of those that LC_ALL is needed?
I guess diff use LC_MESSAGES to determine locale which use for info/error
messages so alternative strategy could be to unset LC_MESSAGES but I think set
LC_ALL=C is more robust and portable.
--
Dmitry Vasiliev (dima at hlabs.spb.ru)
http://hlabs.spb.ru
More information about the bazaar
mailing list