Commit dbbf0ca
authored
Remove use of locale-specific
strerror_r doesn't necessarily return UTF-8 but we assume it does.
strerror_r is locale-sensitive but we are better off not being
locale-sensitive.
strerror_r requires us to use libc but increasingly we want to avoid
libc, e.g. to support x86_64-unknown-linux-none.
Just remove the use of the function.strerror_r (rust-random#440)1 parent 6c5b2d2 commit dbbf0ca
1 file changed
Lines changed: 11 additions & 28 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
1 | 4 | | |
2 | 5 | | |
3 | 6 | | |
| |||
98 | 101 | | |
99 | 102 | | |
100 | 103 | | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | 104 | | |
122 | 105 | | |
123 | 106 | | |
124 | 107 | | |
125 | 108 | | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
| 109 | + | |
| 110 | + | |
130 | 111 | | |
131 | 112 | | |
132 | 113 | | |
| |||
140 | 121 | | |
141 | 122 | | |
142 | 123 | | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
147 | 130 | | |
148 | 131 | | |
149 | 132 | | |
| |||
0 commit comments