1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 02:57:44 +00:00
serenity/Userland
Timothy Flynn ca0d926036 LibJS: Use decimal compact patterns for currency style sub-patterns
When formatting a currency style pattern with compact notation, we were
(trying to) doubly insert the currency symbol into the formatted string.
We would first look up the currency pattern in GetNumberFormatPattern
(for the en locale, this is "¤#,##0.00", which our generator transforms
to "{currency}{number}").

When we hit the "{number}" field, NumberFormat will do a second lookup
for the compact pattern to use for the number being formatted. By using
the currency compact patterns, we receive a second pattern that also has
the currency symbol (for the en locale, if formatting the number 1000,
this is "¤0K", which our generator transforms to
"{currency}{number}{compactIdentifier:0}". This second lookup is not
supposed to have currency symbols (or any other symbols), thus we hit a
VERIFY_NOT_REACHED().

Instead, we are meant to use the decimal compact pattern, and allow the
currency symbol to be handled by only the outer currency pattern.
2023-09-04 18:22:28 +02:00
..
Applets Userland: Migrate to String in notification system 2023-09-01 12:06:08 +02:00
Applications Maps: Add new basic maps application and map widget 2023-09-03 18:10:58 +02:00
BuggieBox Userland: Pretty print the help text in BuggieBox 2023-08-09 02:10:02 +02:00
Demos Mandelbrot: Pledge unix to enable image export 2023-08-17 07:14:54 +02:00
DevTools Userland: Migrate to String in notification system 2023-09-01 12:06:08 +02:00
DynamicLoader LibC+LibELF: Support loading shared libraries compiled with dynamic TLS 2023-08-18 16:20:13 +02:00
Games Chess: Capitalize chess set names + Rename 'stelar7' to 'Classic' 2023-08-29 10:28:24 +02:00
Libraries LibJS: Use decimal compact patterns for currency style sub-patterns 2023-09-04 18:22:28 +02:00
Services Userland: Migrate to String in notification system 2023-09-01 12:06:08 +02:00
Shell Shell: Implement close redirections in POSIX mode 2023-08-31 11:02:57 +03:30
Utilities LibJS: Add file & line number to bytecode VM stack traces :^) 2023-09-02 15:37:53 +02:00
CMakeLists.txt Userland: Add the BuggieBox program 2022-11-26 12:41:47 -07:00