- Notifications
You must be signed in to change notification settings - Fork5
Commite04fa58
committed
Fix unportable usages of tolower(). On signed-char machines, it is necessary
to explicitly cast the output back to char before comparing it to a charvalue, else we get the wrong result for high-bit-set characters. Found byRolf Jentsch. Also, fix several places where <ctype.h> functions were beingcalled without casting the argument to unsigned char; this is likewiseunportable, but we keep making that mistake :-(. These found by buildfarmmember salamander, which I will desperately miss if it ever goes belly-up.1 parent3bf822c commite04fa58
File tree
3 files changed
+10
-8
lines changed- src
- backend/utils/adt
- interfaces/ecpg
- ecpglib
- preproc
3 files changed
+10
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
| 74 | + | |
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
125 | | - | |
| 125 | + | |
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
130 | | - | |
131 | | - | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
132 | 134 | | |
133 | 135 | | |
134 | 136 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
5847 | 5847 | | |
5848 | 5848 | | |
5849 | 5849 | | |
5850 | | - | |
| 5850 | + | |
5851 | 5851 | | |
5852 | 5852 | | |
5853 | 5853 | | |
| |||
0 commit comments
Comments
(0)