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

Escape non-US-ASCII characters in SassException.toCssString() #2143

Merged
merged 3 commits into from
Dec 8, 2023
Merged

Escape non-US-ASCII characters in SassException.toCssString() #2143

merged 3 commits into from
Dec 8, 2023

Conversation

ntkme
Copy link
Contributor

@ntkme ntkme commented Dec 6, 2023

Currently SassException.toCssString() would write code points between 128 and 255 in UTF-8. The result cannot be parsed as US-ASCII (ASCII-7BIT).

UTF-8 encoded file with only code points less than 128 is completely interchangeable with US-ASCII. Therefore, this PR further escapes code points between 128 and 255.

@nex3 nex3 merged commit 4daf0b4 into sass:main Dec 8, 2023
28 checks passed
@ntkme ntkme deleted the us-ascii branch December 8, 2023 00:43
lmeysel pushed a commit to lmeysel/dart-sass that referenced this pull request Feb 20, 2024
…#2143)

Co-authored-by: Natalie Weizenbaum <nweiz@google.com>
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

Successfully merging this pull request may close these issues.

None yet

2 participants