[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
printf I flag support
From: |
Paul Eggert |
Subject: |
printf I flag support |
Date: |
Wed, 23 Aug 2006 16:39:18 -0700 |
User-agent: |
Gnus/5.1008 (Gnus v5.10.8) Emacs/21.4 (gnu/linux) |
I installed this. I suppose it could be autoconfed, but it'd be a
runtime test....
2006-08-23 Paul Eggert <address@hidden>
* NEWS: printf supports the I flag.
* src/printf.c (print_formatted) [glibc 2.2 or later]: Likewise.
--- NEWS 23 Aug 2006 09:17:14 -0000 1.409
+++ NEWS 23 Aug 2006 23:36:59 -0000
@@ -15,6 +15,11 @@ GNU coreutils NEWS
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
--- src/printf.c 21 Aug 2006 07:30:47 -0000 1.104
+++ src/printf.c 23 Aug 2006 23:36:59 -0000
@@ -517,6 +517,9 @@ print_formatted (const char *format, int
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;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- printf I flag support,
Paul Eggert <=