]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(unquote, make_printable_str): Use e.g. '\a' rather than '\007',
authorJim Meyering <jim@meyering.net>
Thu, 13 May 2004 07:27:10 +0000 (07:27 +0000)
committerJim Meyering <jim@meyering.net>
Thu, 13 May 2004 07:27:10 +0000 (07:27 +0000)
for portability to EBCDIC hosts.

src/tr.c

index 3bb9cec6fd49003321046d5c8bc5fb26918fbb6b..366b217100b0ddc8389235c8efeb75532ab5efaa 100644 (file)
--- a/src/tr.c
+++ b/src/tr.c
@@ -494,7 +494,7 @@ unquote (const unsigned char *s, struct E_string *es)
              c = '\\';
              break;
            case 'a':
-             c = '\007';
+             c = '\a';
              break;
            case 'b':
              c = '\b';
@@ -643,7 +643,7 @@ make_printable_str (const unsigned char *s, size_t len)
        case '\\':
          tmp = "\\";
          break;
-       case '\007':
+       case '\a':
          tmp = "\\a";
          break;
        case '\b':