Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

astral characters not supported #191

Closed
rlidwka opened this issue May 13, 2015 · 0 comments
Closed

astral characters not supported #191

rlidwka opened this issue May 13, 2015 · 0 comments

Comments

@rlidwka
Copy link
Member

rlidwka commented May 13, 2015

YAML standard allows raw astrals, js-yaml refuses to parse them:

> require('../').load('𐌀')
JS-YAML: the stream contains non-printable characters at line 1, column 1:
    𐌀
    ^
rlidwka added a commit to rlidwka/js-yaml that referenced this issue May 13, 2015
According to YAML 1.2 spec, #xD800-#xDFFF unicode range is considered
non-printables. But unicode range #x10000-#x10FFFF, represented
in UTF-16 by the same characters is not.

NOTE: Non-printable characters are still allowed in quoted scalars,
added a pending test for this case.

Fixes: nodeca#191
@puzrin puzrin closed this as completed May 13, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants