mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 08:54:58 +00:00
AK: Swallow 'L' format specifier until it is properly implemented
Previously if code attempted to use the format specifier somewhere (Ex: "%#4.3Lg"), the specifier would get dropped and we would just print "g" instead of any value. Now at least we print a value.
This commit is contained in:
parent
0ddb877f87
commit
d1806d44fa
1 changed files with 6 additions and 0 deletions
|
@ -467,6 +467,12 @@ ALWAYS_INLINE int printf_internal(PutChFunc putch, char* buffer, const char*& fm
|
|||
if (*(p + 1))
|
||||
goto one_more;
|
||||
}
|
||||
if (*p == 'L') {
|
||||
// TODO: Implement this properly.
|
||||
// For now just swallow, so the contents are actually rendered.
|
||||
if (*(p + 1))
|
||||
goto one_more;
|
||||
}
|
||||
if (*p == 'z') {
|
||||
state.size_qualifier = true;
|
||||
if (*(p + 1))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue