[PATCH] patchbomb: fix From_ in the message's envelope
Greg Ward
greg-hg at gerg.ca
Mon Jul 6 14:43:33 UTC 2009
On Mon, Jul 6, 2009 at 9:35 AM, Cedric Duval<cedricduval at free.fr> wrote:
> I have been thinking of another way. If the locale [1] tool is available,
> it will be used to query the locales present on the system, and pick
> a non-C/POSIX locale out of them if any to perform the test, or skip it.
>
> Something like that:
> locale -a | sed '/^C$/d;/^POSIX$/d' | sed -n '1p'
Is that sufficient? Don't you have to exclude English locales as
well? If I run
$ LANG=en_CA.utf8 date
$ LANG=en_CA.utf8 date -R
$ LANG=en_US.utf8 date
$ LANG=en_US.utf8 date -R
...repeating for various en_* locales, I get the same result. So
those locales would not expose the bug. I think.
Greg
More information about the Mercurial-devel
mailing list