diff options
author | Jim Meyering <jim@meyering.net> | 2004-05-13 07:26:46 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2004-05-13 07:26:46 +0000 |
commit | 179af74c1a2a52b4dfc852054e43656850a1df61 (patch) | |
tree | 0c93375a5936d299562c2739cd8affc8cf153162 /src | |
parent | 364d39ccd8e079f7041896a7fbb34ada20a39134 (diff) | |
download | coreutils-179af74c1a2a52b4dfc852054e43656850a1df61.tar.xz |
(print_esc_char): Use e.g. '\a' rather than '\007',
for portability to EBCDIC hosts.
Diffstat (limited to 'src')
-rw-r--r-- | src/printf.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/printf.c b/src/printf.c index f812212f5..0c709864b 100644 --- a/src/printf.c +++ b/src/printf.c @@ -199,28 +199,28 @@ print_esc_char (int c) switch (c) { case 'a': /* Alert. */ - putchar (7); + putchar ('\a'); break; case 'b': /* Backspace. */ - putchar (8); + putchar ('\b'); break; case 'c': /* Cancel the rest of the output. */ exit (EXIT_SUCCESS); break; case 'f': /* Form feed. */ - putchar (12); + putchar ('\f'); break; case 'n': /* New line. */ - putchar (10); + putchar ('\n'); break; case 'r': /* Carriage return. */ - putchar (13); + putchar ('\r'); break; case 't': /* Horizontal tab. */ - putchar (9); + putchar ('\t'); break; case 'v': /* Vertical tab. */ - putchar (11); + putchar ('\v'); break; default: putchar (c); |