Skip to content

src: don't use locale-sensitive strcasecmp() (v4.x) - #7660

Closed
bnoordhuis wants to merge 2 commits into
nodejs:v4.x-stagingfrom
bnoordhuis:backport-pr6582-v4.x
Closed

src: don't use locale-sensitive strcasecmp() (v4.x)#7660
bnoordhuis wants to merge 2 commits into
nodejs:v4.x-stagingfrom
bnoordhuis:backport-pr6582-v4.x

Conversation

@bnoordhuis

@bnoordhuisbnoordhuis commented Jul 11, 2016

Copy link
Copy Markdown
Member

@nodejs-github-botnodejs-github-bot added the c++ Issues and PRs that require attention from people who are familiar with C++. label Jul 11, 2016
@MylesBorinsMylesBorins self-assigned this Jul 11, 2016
@MylesBorins

Copy link
Copy Markdown
Contributor

@bnoordhuis can you rebase against v4.x-staging one more time... had to rebase in a missing commit. Should be close enough a tree that the CI run is still relevant

strcasecmp() is not used in src/node_http_parser.cc so there is no need
to include its header file.
PR-URL: nodejs#6582
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Fedor Indutny <fedor.indutny@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
strcasecmp() is affected by the current locale as configured through
e.g. the LC_ALL environment variable and the setlocale() libc function.
It can result in unpredictable results across systems so replace it with
a function that isn't susceptible to that.
PR-URL: nodejs#6582
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Fedor Indutny <fedor.indutny@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
@bnoordhuis
bnoordhuisforce-pushed the backport-pr6582-v4.x branch from e38bd13 to aa8c48fCompareJuly 11, 2016 22:04
@bnoordhuis

Copy link
Copy Markdown
MemberAuthor

@thealphanerd Done. New CI: https://ci.nodejs.org/job/node-test-pull-request/3255/

@MylesBorins

Copy link
Copy Markdown
Contributor

landed in 583a80d...a881986

@MylesBorinsMylesBorins removed their assignment Dec 27, 2016
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c++Issues and PRs that require attention from people who are familiar with C++.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@bnoordhuis@MylesBorins@addaleax@nodejs-github-bot