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

Add and use our own ASCII case-conversion routines #2911

Merged
merged 2 commits into from
Jun 18, 2019
Merged

Conversation

glebm
Copy link
Contributor

@glebm glebm commented Jun 16, 2019

std::tolower and std::toupper are locale-dependent and should not be used anywhere we currently use them.

Adds and switches to our own implementations for these and other locale-dependent functions.

@glebm glebm requested a review from mgreter June 16, 2019 05:36
@glebm glebm force-pushed the ascii branch 3 times, most recently from 692251b to ac3bfd9 Compare June 16, 2019 06:04
@xzyfer
Copy link
Contributor

xzyfer commented Jun 16, 2019

sass2scss is an external library we vender in. The upstream is mgreter/sass2scss

@glebm glebm force-pushed the ascii branch 2 times, most recently from 82d39fe to 9894790 Compare June 16, 2019 06:38
@glebm
Copy link
Contributor Author

glebm commented Jun 16, 2019

Ah, thanks. Removed the sass2scss commit and opened mgreter/sass2scss#39 instead.

@xzyfer
Copy link
Contributor

xzyfer commented Jun 16, 2019 via email

src/util_string.hpp Outdated Show resolved Hide resolved
@glebm glebm force-pushed the ascii branch 2 times, most recently from 7e549c7 to f99a92a Compare June 17, 2019 19:12
`std::tolower` and `std::toupper` are locale-dependent and should not be
used anywhere we currently use them.

Adds and switches to our own implementations for these and other
locale-dependent functions.
Also removes "unicode" and replaces "nonascii".
They were identical in behaviour.
Copy link
Contributor

@mgreter mgreter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@glebm glebm merged commit c713140 into sass:master Jun 18, 2019
@glebm glebm deleted the ascii branch June 18, 2019 00:24
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.

3 participants