Reproducer
$ locale -k LC_TIME
abday="Sun;Mon;Tue;Wed;Thu;Fri;Sat"
day="Sunday;Monday;Tuesday;Wednesday;Thursday;Friday;Saturday"
abmon="Jan;Feb;Mar;Apr;May;Jun;Jul;Aug;Sep;Oct;Nov;Dec"
mon="January;February;March;April;May;June;July;August;September;October;November;December"
era=
alt_digits=
env -u LC_ALL LC_TIME=th_TH.UTF-8 \
./target/release/date -d "2026-06-14" "+%Y %B %A"
Actual output
Expected output
GNU comparison
env -u LC_ALL LC_TIME=th_TH.UTF-8 \
date -d "2026-06-14" "+%Y %B %A"
GNU date prints:
Notes
The active LC_TIME data contains:
mon="January;February;March;April;May;June;July;August;September;October;November;December"
day="Sunday;Monday;Tuesday;Wednesday;Thursday;Friday;Saturday"
era=
alt_digits=
However, uutils prints a Buddhist Era year (2569) and Thai month/weekday names.
This suggests that the formatter is not honoring the active locale data and is instead deriving formatting behavior directly from the locale identifier (th_TH.UTF-8).
Expected behavior is to match GNU date and use the values provided by the active LC_TIME definition.
Reproducer
Actual output
Expected output
GNU comparison
GNU
dateprints:Notes
The active
LC_TIMEdata contains:However, uutils prints a Buddhist Era year (
2569) and Thai month/weekday names.This suggests that the formatter is not honoring the active locale data and is instead deriving formatting behavior directly from the locale identifier (
th_TH.UTF-8).Expected behavior is to match GNU
dateand use the values provided by the activeLC_TIMEdefinition.