LibC: Use an explicit fixme for unsupported formats in strftime

This commit is contained in:
Lucas Chollet authored and Nico Weber committed 2026-09-21 20:12:39 -04:00
1 parent df91038f4a
commit ce1809234d
1 file changed
+4 -1
+4 -1
View File
@@ -271,7 +271,6 @@ char* asctime_r(const struct tm* tm, char* buffer)
return buffer;
}
// FIXME: Some formats are not supported.
size_t strftime(char* destination, size_t max_size, char const* format, const struct tm* tm)
{
tzset();
@@ -443,6 +442,10 @@ size_t strftime(char* destination, size_t max_size, char const* format, const st
case 'Y':
builder.appendff("{}", tm->tm_year + 1900);
break;
case 'z':
case 'Z':
dbgln("FIXME: Unsupported format in strftime: %z/%Z");
return 0;
case '%':
builder.append('%');
break;