Commit ae6dc97
BUG: Fixed Unicode decoding error in
* Added test representative of #46319. Should fail on CI
* Added a gha worker with non utf 8 zh_CN encoding
* Attempt to fix the encoding so that locale works
* Added the fix, but not using it for now, until CI is able to reproduce the issue.
* Crazy idea: maybe simply removing the .utf8 modifier will use the right encoding !
* Hopefully fixing the locale not available error
* Now simply generating the locale, not updating the ubuntu one
* Trying to install the locale without enabling it
* Stupid mistake
* Testing the optional locale generator condition
* Put back all runners
* Added whatsnew
* Now using the fix
* As per code review: moved locale-switching fixture `overridden_locale` to conftest
* Flake8
* Added comments on the runner
* Added a non-utf8 locale in the `it_IT` runner. Added the zh_CN.utf8 locale in the tests
* Improved readability of fixture `overridden_locale` as per code review
* Added two comments on default encoding
* Fixed #46319 by adding a new `char_to_string_locale` function in the `tslibs.util` module, able to decode char* using the current locale.
* As per code review: modified the test to contain non-utf8 chars. Fixed the resulting issue.
* Split the test in two for clarity
* Fixed test and flake8 error.
* Updated whatsnew to ref #46468 . Updated test name
* Removing wrong whatsnew bullet
* Nitpick on whatsnew as per code review
* Fixed build error rst directive
* Names incorrectly reverted in last merge commit
* Fixed test_localization so that #46595 can be demonstrated on windows targets (even if today these do not run on windows targets, see #46597)
* Fixed `tm.set_locale` context manager, it could error and leak when category LC_ALL was used. Fixed #46595
* Removed the fixture as per code review, and added corresponding parametrization in tests.
* Dummy mod to trigger CI again
* reverted dummy mod
* Attempt to fix the remaining error on the numpy worker
* Fixed issue in `_from_ordinal`
* Added asserts to try to understand
* Reverted debugging asserts and applied fix for numpy repeat from #47670.
* Fixed the last issue on numpy dev: a TypeError message had changed
* Code review: Removed `EXTRA_LOC`
* Code review: removed commented line
* Code review: reverted out of scope change
* Code review: reverted out of scope change
* Fixed unused import
* Fixed revert mistake
* Moved whatsnew to 1.6.0
* Update pandas/tests/io/parser/test_quoting.py
Co-authored-by: Sylvain MARIE <sylvain.marie@se.com>Period.strftime when a locale-specific directive is used (#46405)1 parent c30456f commit ae6dc97
File tree
5 files changed
+109
-6
lines changed- .github/workflows
- doc/source/whatsnew
- pandas
- _libs/tslibs
- tests/io/formats
5 files changed
+109
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| 49 | + | |
49 | 50 | | |
50 | 51 | | |
51 | | - | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
52 | 56 | | |
53 | 57 | | |
54 | 58 | | |
| 59 | + | |
55 | 60 | | |
56 | 61 | | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
57 | 65 | | |
58 | 66 | | |
59 | 67 | | |
| |||
148 | 156 | | |
149 | 157 | | |
150 | 158 | | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
151 | 165 | | |
152 | 166 | | |
153 | 167 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
178 | | - | |
| 178 | + | |
179 | 179 | | |
180 | 180 | | |
181 | 181 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1160 | 1160 | | |
1161 | 1161 | | |
1162 | 1162 | | |
1163 | | - | |
| 1163 | + | |
| 1164 | + | |
1164 | 1165 | | |
1165 | 1166 | | |
1166 | 1167 | | |
| |||
1229 | 1230 | | |
1230 | 1231 | | |
1231 | 1232 | | |
1232 | | - | |
| 1233 | + | |
| 1234 | + | |
1233 | 1235 | | |
1234 | 1236 | | |
1235 | 1237 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
29 | 33 | | |
30 | 34 | | |
31 | 35 | | |
| |||
219 | 223 | | |
220 | 224 | | |
221 | 225 | | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
5 | 9 | | |
6 | 10 | | |
| 11 | + | |
7 | 12 | | |
8 | 13 | | |
9 | 14 | | |
| |||
46 | 51 | | |
47 | 52 | | |
48 | 53 | | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
49 | 61 | | |
50 | 62 | | |
51 | 63 | | |
| |||
3219 | 3231 | | |
3220 | 3232 | | |
3221 | 3233 | | |
| 3234 | + | |
| 3235 | + | |
| 3236 | + | |
| 3237 | + | |
| 3238 | + | |
| 3239 | + | |
| 3240 | + | |
| 3241 | + | |
| 3242 | + | |
| 3243 | + | |
| 3244 | + | |
| 3245 | + | |
| 3246 | + | |
| 3247 | + | |
| 3248 | + | |
| 3249 | + | |
| 3250 | + | |
| 3251 | + | |
| 3252 | + | |
| 3253 | + | |
| 3254 | + | |
| 3255 | + | |
| 3256 | + | |
| 3257 | + | |
| 3258 | + | |
| 3259 | + | |
| 3260 | + | |
| 3261 | + | |
| 3262 | + | |
| 3263 | + | |
| 3264 | + | |
| 3265 | + | |
| 3266 | + | |
| 3267 | + | |
| 3268 | + | |
| 3269 | + | |
| 3270 | + | |
| 3271 | + | |
| 3272 | + | |
| 3273 | + | |
| 3274 | + | |
| 3275 | + | |
| 3276 | + | |
| 3277 | + | |
| 3278 | + | |
| 3279 | + | |
| 3280 | + | |
| 3281 | + | |
| 3282 | + | |
| 3283 | + | |
| 3284 | + | |
| 3285 | + | |
| 3286 | + | |
| 3287 | + | |
| 3288 | + | |
| 3289 | + | |
| 3290 | + | |
| 3291 | + | |
| 3292 | + | |
| 3293 | + | |
| 3294 | + | |
3222 | 3295 | | |
3223 | 3296 | | |
3224 | 3297 | | |
| |||
0 commit comments