]> git.kaiwu.me - njs.git/commit
Improved processing of invalid surrogate pairs in strings.
authorAlexander Borisov <alexander.borisov@nginx.com>
Tue, 28 May 2019 17:49:58 +0000 (20:49 +0300)
committerAlexander Borisov <alexander.borisov@nginx.com>
Tue, 28 May 2019 17:49:58 +0000 (20:49 +0300)
commit721af4cc5ec2470a69f0c680b0027b4d1339aff9
treedf3a760ba7def678cce0be76d378f8eff00a1695
parentec2c0d934fc1100fba5e749bf58d26092c5dbf27
Improved processing of invalid surrogate pairs in strings.

Previously, an exception was thrown on invalid surrogate pairs.
Now, all such pairs are converted to replacement character.

This closes #170 issue on GitHub.
njs/njs_parser_terminal.c
njs/test/njs_unit_test.c
nxt/nxt_utf8.h