1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-04-21 03:12:48 +02:00

* NEWS: printf supports the I flag.

* src/printf.c (print_formatted) [glibc 2.2 or later]: Likewise.
This commit is contained in:
Paul Eggert
2006-08-23 23:38:27 +00:00
parent 5f61923564
commit 882c0d8d35
2 changed files with 8 additions and 0 deletions

5
NEWS
View File

@@ -15,6 +15,11 @@ GNU coreutils NEWS -*- outline -*-
df now considers BSD "kernfs" file systems to be dummies
** New features
printf now supports the 'I' flag on hosts whose underlying printf
implementations support 'I', e.g., "printf %Id 2".
** Bug fixes
cp --sparse preserves sparseness at the end of a file, even when

View File

@@ -517,6 +517,9 @@ print_formatted (const char *format, int argc, char **argv)
for (;; f++, direc_length++)
switch (*f)
{
#if (__GLIBC__ == 2 && 2 <= __GLIBC_MINOR__) || 3 <= __GLIBC__
case 'I':
#endif
case '\'':
ok['a'] = ok['A'] = ok['c'] = ok['e'] = ok['E'] =
ok['o'] = ok['s'] = ok['x'] = ok['X'] = 0;