forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit94379a1
Don't expose Windows' mbstowcs_l() and wcstombs_l().
Windows has similar functions with leading underscores. Previously, weprovided the rename via a macro in win32_port.h. In fact its functionsare not always good replacements for the Unix functions, since theycan't deal with UTF-8. They are only currently used by pg_locale.c,which is careful to redirect to other Windows routines for UTF-8. Giventhat portability hazard, it seem unlikely to be a good idea to encourageany other code to think of these functions as being available outsidepg_locale.c. Any code that thinks it wants these functions probablywants our wchar2char() or char2wchar() routines instead, or it won'tactually work on Windows in UTF-8 databases.Furthermore, some major libc implementations including glibc don't havethem (they only have the standard variants without _l), so external codeis very unlikely to require them to exist.Reviewed-by: Peter Eisentraut <peter@eisentraut.org>Discussion:https://postgr.es/m/CA%2BhUKG%2Bt_CHPzEoPnKyARJBJgE9-GxNajJo6ZuSfRK_KWFO%2B6w%40mail.gmail.com1 parent4c23690 commit94379a1
2 files changed
+9
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
157 | | - | |
158 | 157 | | |
159 | 158 | | |
160 | | - | |
161 | | - | |
| 159 | + | |
162 | 160 | | |
163 | 161 | | |
164 | 162 | | |
165 | 163 | | |
166 | 164 | | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
167 | 168 | | |
168 | 169 | | |
169 | 170 | | |
170 | 171 | | |
171 | 172 | | |
172 | 173 | | |
| 174 | + | |
173 | 175 | | |
174 | 176 | | |
175 | 177 | | |
176 | 178 | | |
177 | 179 | | |
178 | 180 | | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
179 | 184 | | |
180 | 185 | | |
181 | 186 | | |
182 | 187 | | |
183 | 188 | | |
184 | 189 | | |
185 | | - | |
186 | 190 | | |
| 191 | + | |
187 | 192 | | |
188 | 193 | | |
189 | 194 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
455 | 455 | | |
456 | 456 | | |
457 | 457 | | |
458 | | - | |
459 | | - | |
460 | 458 | | |
461 | 459 | | |
462 | 460 | | |
| |||
0 commit comments
Comments
(0)