[parrot/parrot] f50380: [GH #845] Fix data_json \unnnn encoding

GitHub noreply at github.com
Tue Oct 2 00:03:09 UTC 2012


  Branch: refs/heads/rurban/json-utf16-gh845
  Home:   https://github.com/parrot/parrot
  Commit: f50380b17eba4c85080e108d02f3e7421c84676b
      https://github.com/parrot/parrot/commit/f50380b17eba4c85080e108d02f3e7421c84676b
  Author: Reini Urban <rurban at cpanel.net>
  Date:   2012-09-27 (Thu, 27 Sep 2012)

  Changed paths:
    M compilers/data_json/data_json/pge2pir.tg
    M src/ops/string.ops
    M src/string/encoding/utf16.c
    M t/compilers/data_json/from_parrot.t
    M t/compilers/data_json/to_parrot.t

  Log Message:
  -----------
  [GH #845] Fix data_json \unnnn encoding

\u needs to be encoded as utf16 char, not utf8 because they
are binary different. E.g. \u00a2 is 0xc2a2 in utf8.

Add utf16_chr vtable method for the Parrot_utf16_encoding.
Add unicode tests to data_json.


  Commit: 1313cd42e14cca1964324cebe2d20b62f7a504c0
      https://github.com/parrot/parrot/commit/1313cd42e14cca1964324cebe2d20b62f7a504c0
  Author: Reini Urban <rurban at cpanel.net>
  Date:   2012-09-28 (Fri, 28 Sep 2012)

  Changed paths:
    M compilers/data_json/data_json/pge2pir.tg

  Log Message:
  -----------
  GH #845 use ucs2 not utf16 for json \u values

This is safer.


  Commit: 274df5d890ea76ea3ca9ad3d9228df97d073268f
      https://github.com/parrot/parrot/commit/274df5d890ea76ea3ca9ad3d9228df97d073268f
  Author: Reini Urban <rurban at cpanel.net>
  Date:   2012-09-28 (Fri, 28 Sep 2012)

  Changed paths:
    M src/string/encoding/ucs2.c

  Log Message:
  -----------
  GH #845 Add ucs2_chr for data_json


  Commit: 16e4251d043ab612d416f416d6f01c4c87b48660
      https://github.com/parrot/parrot/commit/16e4251d043ab612d416f416d6f01c4c87b48660
  Author: Reini Urban <rurban at cpanel.net>
  Date:   2012-10-01 (Mon, 01 Oct 2012)

  Changed paths:
    M .travis.yml
    M ChangeLog
    M MANIFEST
    M docs/binaries/parrot.pod
    M src/io/api.c
    M src/platform/generic/cpu_type.c
    M tools/dev/gdb-pp.py

  Log Message:
  -----------
  Merge branch 'rurban/json-utf16-gh845' of github.com:parrot/parrot into rurban/json-utf16-gh845


Compare: https://github.com/parrot/parrot/compare/2079a97b6b0e...16e4251d043a


More information about the parrot-commits mailing list