[prev in list] [next in list] [prev in thread] [next in thread] 

List:       avro-dev
Subject:    [jira] [Commented] (AVRO-1593) C++ json encoder assumes "C" locale and generates invalid UTF-8 seque
From:       "Hudson (JIRA)" <jira () apache ! org>
Date:       2015-08-26 22:38:46
Message-ID: JIRA.12747256.1412937179000.176072.1440628726340 () Atlassian ! JIRA
[Download RAW message or body]


    [ https://issues.apache.org/jira/browse/AVRO-1593?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14715650#comment-14715650 \
] 

Hudson commented on AVRO-1593:
------------------------------

SUCCESS: Integrated in AvroJava #544 (See \
[https://builds.apache.org/job/AvroJava/544/]) AVRO-1593. Use classic locale to \
escape control chars. Contributed by Hatem Helal.

This closes #32 and closes #15. (blue: rev 1698007)
* /avro/trunk/CHANGES.txt
* /avro/trunk/lang/c++/impl/json/JsonIO.hh


> C++ json encoder assumes "C" locale and generates invalid UTF-8 sequence 
> -------------------------------------------------------------------------
> 
> Key: AVRO-1593
> URL: https://issues.apache.org/jira/browse/AVRO-1593
> Project: Avro
> Issue Type: Bug
> Components: c++
> Affects Versions: 1.7.7
> Environment: windows-1252 encoding
> Reporter: Hatem Helal
> Assignee: Hatem Helal
> Priority: Critical
> Fix For: 1.7.8
> 
> 
> encoding a multibyte UTF-8 code point such as:
> "\xEF\xBD\x81"
> Incorrectly becomes:
> "\xEF\xBD\U0081"
> When encoded in the service running in the windows-1252 locale.  This isn št a \
> valid UTF-8 sequence so we end up with Mojibake when reading back the JSON encoded \
> string.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic