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

Compiled code with a string literal having control characters cannot be written to .uml file #67

Closed
seidewitz opened this issue Oct 11, 2018 · 2 comments
Assignees
Labels

Comments

@seidewitz
Copy link
Contributor

The Alf code for a string literal is mapped to a value specification action with a string value. The name of the action includes the literal string. However, if the string contains control characters (e.g., "\b\t"), then these are placed into the name of the action without escaping. This can result in characters that cannot be serialized to XML and, so, cannot be saved to a .uml file.

@seidewitz seidewitz added the bug label Oct 11, 2018
@seidewitz seidewitz self-assigned this Oct 11, 2018
@seidewitz
Copy link
Contributor Author

These characters can be easily removed from the name of the action, but they also appear in the actual string value of the value specification action. The problem is that XML 1.0 does not allow backspace or form feed characters, even if escaped. The solution is to serialize using XML 1.1.

@seidewitz
Copy link
Contributor Author

Resolved in v1.1.0e.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant