Menu

\u used with no following hex digits

Help
Lee Grey
2014-06-23
2016-03-14
  • Lee Grey

    Lee Grey - 2014-06-23

    Hi. I am attempting to use CAJUN in OSX, using XCode, and I get the following error from reader.inl:

    /.../CAJUNtest/json/reader.inl:323:46: \u used with no following hex digits
    

    and a similar error from writer.inl

    /.../CAJUNtest/json/writer.inl:151:16: \u used with no following hex digits
    

    I see that there are some comments that suggest the problem has been encountered before:

    line 323:  case 'u':      string.push_back('\u');    break; // TODO: what do we do with this?
    

    If I add extra escape characters the test compiles, but complains about parsing errors and other problems, so I assume it is not working.

    Any thoughts on how to fix this? I really like the look of the CAJUN api, and would like to use it over the alternatives if possible. Thanks.

    EDIT: My bad... I see this issue has been discussed in an earlier post. The problem still remains though. Just commenting out those two lines allows the library to be used, but presumably some functionality will break. (utf8 support?)

     

    Last edit: Lee Grey 2014-06-24
  • Henry H

    Henry H - 2016-03-14

    The unicode patch (see other post) fixes this problem.

     

Log in to post a comment.