Commit Graph

8 Commits

Author SHA1 Message Date
Timothy Flynn
dc381c4ba7 LibUnicode: Preserve original ICU pattern in CalendarPattern
When AdjustDateTimeStyleFormat determines that no adjustment is needed
(no conflicting fields), the original date/time style pattern should be
used as-is for Temporal type formatting. Previously, the CalendarPattern
was round-tripped through ICU, which apparently can produce a different
pattern than the original result.
2026-03-09 19:02:59 +01:00
Timothy Flynn
b6699d439a LibUnicode: Add a cache for ICU calendar objects
Analogous to our existing locale and time zone caches.
2026-03-09 11:40:59 +01:00
Timothy Flynn
49b09b3fbe LibJS+LibUnicode: Always format zoned minutes and seconds with 2 digits
This matches the behavior of other engines.
2026-03-09 11:40:59 +01:00
InvalidUsernameException
1b2bca7831 LibUnicode: Print error codes when calls to ICU fail
Primary motivation for this change is the `VERIFY(icu_success(status))`
line in `Segmenter::create()` that was failing on multiple systems and
where we had to ask people to apply a patch to even know what the error
was.

Since this seems to be a recurring problem, let's just add a little
helper function and print the error codes returned by library calls.
2026-02-21 16:55:36 -05:00
Timothy Flynn
ee01f857d1 LibJS+LibUnicode: Port Intl.DateTimeFormat to UTF-16 strings 2025-07-24 10:39:52 +02:00
Viktor Szépe
19f88f96dc Everywhere: Fix typos - act III 2025-06-16 14:20:48 +01:00
Timothy Flynn
85b424464a AK+Everywhere: Rename verify_cast to as
Follow-up to fc20e61e72.
2025-01-21 11:34:06 -05:00
Timothy Flynn
93712b24bf Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00