-
Notifications
You must be signed in to change notification settings - Fork 38
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
error or crash when writing a string with escape sequence #105
Comments
A single byte 0x9b is not defined in UTF-8 which is the default file encoding. The high bit being set UTF-8 expects another byte in the string. I suspect there's code waiting for the next byte which will never come. I tried 'latin1' for the fileEncoding and get the same result. |
It is properly defined in ISO-8859. yaml::write_yaml(list(test = "\x9b"), file = tempfile(), fileEncoding="ISO-8859-13") hangs. However, this only specifies the file encoding out, not the string encoding in. This leaves me to guess that the string encoding specification isn't correct. |
Fails same way. I tried latin1 and got a nice core dump about out of bounds memory access. This works:
A work around for right now is to make sure the input string is UTF-8 encoded. |
Out of curiosity the default encoding is "unknown" in R. |
This is related to #90 |
Moving everything into a single issue ticket. #113 |
Session info
The text was updated successfully, but these errors were encountered: