Subject: | deep recursion when encoding STDERR messages |
I am not sure that it's something that should be fixed.
Seems when error message is printed to STDERR, and error message contains a perl script name with non-ASCII 7 bits octets, and STDERR is set to single-byte encoding, Encode can throw and error like
"\x{00d1}" does not map to koi8-r at ����/33.pl line 21.
error will be thrown to STDERR too and cause deep recursion if perl script's filename contains characters which does not map to that encoding.
investigation and PoC here http://www.perlmonks.org/?node_id=1026042
and seems this does no happen always, only when STDERR encoding does not match locale (at least I cannot reproduce at systems with KOI-8 locale)