cloudflare / pages-build-image

Apache License 2.0
44 stars 1 forks source link

v2 build system is missing locales #8

Open kernc opened 8 months ago

kernc commented 8 months ago

V2 build system is missing locales (apt install locales), resulting in any build that contains calls to setlocale defunct (e.g. Pelican-based build with its setting LOCALE = ['en_US.UTF-8'] or its DATE_FORMATS). Only locale "C" works, but this then, among other issues, limits rendering datetimes to American standards, which are far from universal. 😅

Similarly reported in this blog post: https://herrickfang.com/2023/11/26/cloudflare-workers/

The issue obviously cannot be worked around with UNSTABLE_PRE_BUILD= (due to disabled sudo) nor asdf.

This was not an issue in v1.