-
-
Notifications
You must be signed in to change notification settings - Fork 31.8k
gh-123681: Check the strftime() behavior at runtime instead of at the compile time #128444
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
gh-123681: Check the strftime() behavior at runtime instead of at the compile time #128444
Conversation
…at the compile time It is needed to support cross-compiling. Remove macros Py_NORMALIZE_CENTURY and Py_STRFTIME_C99_SUPPORT.
This PR is not needed anymore. Please see the issue history. |
No, it is needed to support cross-compiling. You cannot check the runtime behavior at compile time when cross-compiling. |
There is no need; we require C99 compliant strftime. |
It is not C99 compliant (or at least not Python documentation compliant) on Linux. This is why this workaround was needed at first place. |
If that was the case, all our Linux build bots and Linux CI would now be broken. However it is not. |
I wonder why? I guess because ac_cv_normalize_century=yes if cross-compiling. |
Because it is C99 compliant, presumably.
|
Sorry, I misread it as |
What's the status of this PR? |
It is needed to support cross-compiling.
Remove macros Py_NORMALIZE_CENTURY and Py_STRFTIME_C99_SUPPORT.
test_strftime_y2k
fails on embedded Linux #123681