-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
3.1.0: date(1) command sensitive to LC_TIME locale, causing date parse failures if locale's time/date formers differ from C/POSIX [FreeBSD 13.1] #591
Comments
Minimal reproducer in sh-like shells.
Note that LC_ALL is actually quite brutal as it would override an LC_TIME setting, so for enhanced testing:
|
@mandree Thanks for testing and this detailed report.
|
This is the brute-force patch I am using downstream in our 3.1.0_2 package: |
@mandree Please test this patch:
Obviously, this only addresses Thanks for your help! |
Linking #593 |
I believe this should be fully addressed by #595 Testing/feedback welcome. |
On FreeBSD 13.1, with LANG=de_DE.UTF-8 or LC_TIME=fr_FR.UTF-8,
I get
Failed conversion of ``Jun 12 02:02:02 1999 GMT'' using format ``%b %d %T %Y %Z''
anddate: illegal time format
failures building a server:The workaround, and possibly solution, is to override LC_TIME=C or LC_TIME=C.UTF-8 or LC_TIME=POSIX.
This is my relevant locale configuration:
The text was updated successfully, but these errors were encountered: