Skip to content

Commit

Permalink
[3/3] Pango: Hardcode "." as decimal point when building on pre API 21
Browse files Browse the repository at this point in the history
  • Loading branch information
ViliusSutkus89 committed Dec 11, 2023
1 parent 4ef36da commit 6a39f37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pango/patches/1.51.0/localeconv.patch
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
if (layout->decimal == 0)
- layout->decimal = g_utf8_get_char (localeconv ()->decimal_point);
+ #if __ANDROID_API__ >= 21
+ layout->decimal = (localeconv ()->decimal_point);
+ layout->decimal = g_utf8_get_char (localeconv ()->decimal_point);
+ #else
+ layout->decimal = g_utf8_get_char (".");
+ #endif
Expand Down

0 comments on commit 6a39f37

Please sign in to comment.