You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2015/10/29 19:35:27 UTC

[jira] [Commented] (THRIFT-3403) JSON String reader doesn't recognize UTF-16 surrogate pairs

    [ https://issues.apache.org/jira/browse/THRIFT-3403?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14981007#comment-14981007 ] 

ASF GitHub Bot commented on THRIFT-3403:
----------------------------------------

GitHub user phongphan opened a pull request:

    https://github.com/apache/thrift/pull/668

    THRIFT-3403: Fixed JSON string reader doesn't recognize UTF-16 surrogate pairs

    Hi
    
    This should fix THRIFT-3403 by correctly decode surrogate pairs to single code point.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/phongphan/thrift THRIFT-3403

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/thrift/pull/668.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #668
    
----
commit 0ca71b1a222ab8636126a03c6838946d5fc91158
Author: Phongphan Phuttha <ph...@acm.org>
Date:   2015-10-29T18:31:44Z

    THRIFT-3403: Fixed JSON string reader doesn't recognize UTF-16 surrogate
    paris.

----


> JSON String reader doesn't recognize UTF-16 surrogate pairs
> -----------------------------------------------------------
>
>                 Key: THRIFT-3403
>                 URL: https://issues.apache.org/jira/browse/THRIFT-3403
>             Project: Thrift
>          Issue Type: Bug
>          Components: C# - Library
>            Reporter: Phongphan Phuttha
>            Priority: Minor
>
> The readJSONString failure to decode the UTF-16 surrogate pairs.
> Eg. sequence "\ud834\udd1e" converted to two unicode code points when it ought to be single unicode code point (G CLEF).



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