Ismail Dönmez <ismail@xxxxxxxxxxxxx> writes: >> I Google'd a bit but the relevant information seems to be missing about >> this error. Anyhow there is no need for a wrapper at all as Encode class >> has a decode_utf8 function which fixes the problem I am experiencing too >> and chops off the unneeded wrapper. >> >> Patch against git 1.5.1.2 is attached. Comments welcome. >> >> P.S: I am using Encode 2.20 from CPAN which is the latest stable version >> available. > > Ping? This patch should be harmless and it fixes a real error, can it be > applied please? I cannot tell if it is harmless. The original used decode("utf8", $str, Encode::FB_DEFAULT); and you made them to: decode_utf8($str); According to the documentation, decode_utf8($octets [,CHECK]) should be equivalent to decode("utf8", $octets [,CHECK]), and the documentation further says that without CHECK, these functions assume Encode::FB_DEFAULT; in other words, these two should be equivalent. Which means that there is something else going on. Your change may fix what you observed (I do not doubt that it fixed what you observed for you), but without understanding what really is going on (iow, why it is a fix, when the documentation clearly indicates they should be equivalent and it should not fix anything), we cannot tell what *ELSE* we are breaking with this change. - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html