]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
* NEWS: printf supports the I flag.
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 23 Aug 2006 23:38:27 +0000 (23:38 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 23 Aug 2006 23:38:27 +0000 (23:38 +0000)
* src/printf.c (print_formatted) [glibc 2.2 or later]: Likewise.

NEWS
src/printf.c

diff --git a/NEWS b/NEWS
index 1a227a1196eb58cd40dd0413dd9da48441d84e64..869e6ca3c4d3dc4cbdbbc5000c1ea661f960bb2d 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -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
index ddced5af406792857c95c4bbf6defbcfda9c7d59..bfb40728c9b5ca83fe67bdbca54bdb96b8906a29 100644 (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;