We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a7eccf4 commit da7aa25Copy full SHA for da7aa25
locale.c
@@ -8629,7 +8629,10 @@ S_strftime8(pTHX_ const char * fmt,
8629
8630
case UTF8NESS_YES: /* Known to be UTF-8; must be UTF-8 locale if can't
8631
downgrade. */
8632
- if (! is_locale_utf8(locale)) {
+ if (is_locale_utf8(locale)) {
8633
+ locale_utf8ness = LOCALE_IS_UTF8;
8634
+ }
8635
+ else {
8636
locale_utf8ness = LOCALE_NOT_UTF8;
8637
8638
Size_t fmt_len = strlen(fmt);
@@ -8639,9 +8642,6 @@ S_strftime8(pTHX_ const char * fmt,
8639
8642
return false;
8640
8643
}
8641
8644
- else {
- locale_utf8ness = LOCALE_IS_UTF8;
- }
8645
8646
break;
8647
0 commit comments