Bugs item #3511869, was opened at 2012-03-27 06:10
Message generated for change (Tracker Item Submitted) made by 
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=462816&aid=3511869&group_id=51305

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: wxJSON
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: https://www.google.com/accounts ()
Assigned to: Nobody/Anonymous (nobody)
Summary: wrongh parsing of unicode escapes

Initial Comment:
There is:
    // seems that the wxMBConv classes always appends a NULL byte to
    // the converted buffer
    if ( len > 1 )    {
        len = len - 1;
    }
in jsonreader. cpp. This appears not true, at least in wxwidgets 2.9.3 on 
Windows, Consult:
http://docs.wxwidgets.org/2.8/wx_wxmbconv.html#wxmbconvtowchar

This causes json documents like 
["\u00ae"] 
to not parse correctly (the document contains the registered sign, "®") The 
error is:

JSON parse error Error: line 1, col 10 - String value: the UTF-8 stream is 
invalid

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=462816&aid=3511869&group_id=51305

------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
wxCode-users mailing list
wxCode-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxcode-users

Reply via email to