Commit 477e61d
src: don't use locale-sensitive strcasecmp()
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: #6582
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Fedor Indutny <[email protected]>
Reviewed-By: James M Snell <[email protected]>1 parent 1e99643 commit 477e61d
File tree
5 files changed
+48
-17
lines changed- src
- test/cctest
5 files changed
+48
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
73 | 72 | | |
74 | 73 | | |
75 | 74 | | |
| |||
1381 | 1380 | | |
1382 | 1381 | | |
1383 | 1382 | | |
1384 | | - | |
| 1383 | + | |
1385 | 1384 | | |
1386 | | - | |
| 1385 | + | |
1387 | 1386 | | |
1388 | | - | |
| 1387 | + | |
1389 | 1388 | | |
1390 | | - | |
| 1389 | + | |
1391 | 1390 | | |
1392 | | - | |
| 1391 | + | |
1393 | 1392 | | |
1394 | | - | |
| 1393 | + | |
1395 | 1394 | | |
1396 | | - | |
| 1395 | + | |
1397 | 1396 | | |
1398 | | - | |
| 1397 | + | |
1399 | 1398 | | |
1400 | | - | |
| 1399 | + | |
1401 | 1400 | | |
1402 | | - | |
| 1401 | + | |
1403 | 1402 | | |
1404 | | - | |
| 1403 | + | |
1405 | 1404 | | |
1406 | 1405 | | |
1407 | 1406 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | 27 | | |
32 | 28 | | |
33 | 29 | | |
| |||
4446 | 4442 | | |
4447 | 4443 | | |
4448 | 4444 | | |
4449 | | - | |
| 4445 | + | |
4450 | 4446 | | |
4451 | 4447 | | |
4452 | 4448 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
203 | 203 | | |
204 | 204 | | |
205 | 205 | | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
206 | 209 | | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
207 | 219 | | |
208 | 220 | | |
209 | 221 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
178 | 178 | | |
179 | 179 | | |
180 | 180 | | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
181 | 187 | | |
182 | 188 | | |
183 | 189 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
0 commit comments