aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog2
-rw-r--r--libio/tst_wprintf.c1
-rw-r--r--stdio-common/tiformat.c10
3 files changed, 13 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 1aa341a8e6..474d77fcef 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,8 @@
2000-06-17 Ulrich Drepper <drepper@redhat.com>
* stdio-common/vfprintf.c (vfprintf): Fix handling of I flag.
+ * stdio-common/tiformat.c (sprint_ints): Add tests for I flag.
+ * libio/tst_wprintf.c (main): Add test for I flag.
* iconv/gconv_trans.c: Implement handling if translit_ignore.
* locale/langinfo.h: Add entries for translit_ignore information.
diff --git a/libio/tst_wprintf.c b/libio/tst_wprintf.c
index 0838441d2c..bf859f10fc 100644
--- a/libio/tst_wprintf.c
+++ b/libio/tst_wprintf.c
@@ -6,5 +6,6 @@ main (int argc, char *argv[])
{
fputws (L"Hello world!\n", stdout);
wprintf (L"This %s a %ls string: %d\n", "is", L"mixed", 42);
+ wprintf (L"%Iu\n", 0xfeedbeef);
return 0;
}
diff --git a/stdio-common/tiformat.c b/stdio-common/tiformat.c
index bce47665a7..4d2eeb3002 100644
--- a/stdio-common/tiformat.c
+++ b/stdio-common/tiformat.c
@@ -5026,6 +5026,16 @@ sprint_int_type sprint_ints[] =
{__LINE__, 0x00000000, "", "%#.0x"},
{__LINE__, 0x00000000, "0", "%#.0o"},
+ {__LINE__, 0x00000000, "0", "%Id"},
+ {__LINE__, 0x0000000a, "10", "%Id"},
+ {__LINE__, 0x000000d2, "210", "%Id"},
+ {__LINE__, 0x00000c8a, "3210", "%Id"},
+ {__LINE__, 0x0000a8ca, "43210", "%Id"},
+ {__LINE__, 0x000849ea, "543210", "%Id"},
+ {__LINE__, 0x0063d76a, "6543210", "%Id"},
+ {__LINE__, 0x048ff4ea, "76543210", "%Id"},
+ {__LINE__, 0x343efcea, "876543210", "%Id"},
+
{0},
};