[erlang-bugs] Bug in xmerl

Niclas Eklund <>
Fri Aug 8 17:12:35 CEST 2008


Hello!

Thank you for reporting this! We'll investigate this as soon as possible, 
but it seems like it's a bug since the following function use the same 
gurad:

to_char_set(UTF8,Ch) when UTF8 =:= "utf-8"; UTF8 =:= undefined ->

Best Regards,

Niclas, the Erlang/OTP Team

On Fri, 8 Aug 2008, Frederic Minot wrote:

>
> Hi,
>
> I just had the same problem with UTF-8 xml file, with same solution, but I
> changed line 3991 too, from
>   to_ucs(Encoding,Chars) when Encoding=='utf-8'; Encoding == undefined ->
> to
>   to_ucs(Encoding,Chars) when Encoding=="utf-8"; Encoding == undefined ->
> since Encoding is a list, not an atom.
>
> Don't know if it is really useful.
>
> Regards,
> Fred
>
> Lars Thorsen wrote:
>>
>>
>> Hi,
>> it was a bug in xmerl. The ending parenthesis in the call to
>> string_to_char_set/2 (line 2449 in xmerl_scan)was placed wrong.
>> This will be fixed in R12B-4 but I include some patch lines below.
>>
>>
>
> -- 
> View this message in context: http://www.nabble.com/Bug-in-xmerl-tp18154837p18893464.html
> Sent from the Erlang Bugs mailing list archive at Nabble.com.
>
> _______________________________________________
> erlang-bugs mailing list
> 
> http://www.erlang.org/mailman/listinfo/erlang-bugs
>




More information about the erlang-bugs mailing list