Ticket #20686 (new defect)
gsed fails to handle non-ASCII characters (bytes with top-bit set) in C locale
|Reported by:||vinc17@…||Owned by:||macports-tickets@…|
$ echo "abécd" | LC_ALL=C gsed -e 's/.*//' écd
With the sed from Mac OS X and GNU sed under GNU/Linux, one gets a blank line, thus I suppose that this is what the user expects even though é isn't part of the US-ASCII character set specified by the C locale (and even though the result could depend on the encoding with some expressions).
The consequence is that building ocaml fails if gsed is installed with the with_default_names variant (see bug #20275).