Remove UTF-8 chars from source files - sacc - sacc(omys), simple console gopher client
git clone git://bitreich.org/sacc/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/sacc/
Log
Files
Refs
Tags
LICENSE
---
commit 8f6054695180eb9181e94cc8faa8cb941144891a
parent ba3bd1d88313cb8b876bc5d05de3d7449c03f38b
Author: Quentin Rameau 
Date:   Mon, 29 Jan 2018 00:58:24 +0100

Remove UTF-8 chars from source files

Diffstat:
  M sacc.c                              |       6 ++++--
  M ui_ti.c                             |       2 +-
  M ui_txt.c                            |       2 +-

3 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/sacc.c b/sacc.c
@@ -362,7 +362,8 @@ connectto(const char *host, const char *port)
         int sock, r;
 
         if (r = getaddrinfo(host, port, &hints, &addrs)) {
-                uistatus("Can't resolve hostname ā€œ%sā€: %s", host, gai_strerror(r));
+                uistatus("Can't resolve hostname \"%s\": %s",
+                         host, gai_strerror(r));
                 return -1;
         }
 
@@ -381,7 +382,8 @@ connectto(const char *host, const char *port)
                 return -1;
         }
         if (r < 0) {
-                uistatus("Can't connect to: %s:%s: %s", host, port, strerror(errno));
+                uistatus("Can't connect to: %s:%s: %s",
+                         host, port, strerror(errno));
                 return -1;
         }
 
diff --git a/ui_ti.c b/ui_ti.c
@@ -149,7 +149,7 @@ uistatus(char *fmt, ...)
 
         if (n < sizeof(bufout)-1) {
                 n += snprintf(bufout + n, sizeof(bufout) - n,
-                              " [Press a key to continue ā˜ƒ]");
+                              " [Press a key to continue \xe2\x98\x83]");
         }
         if (n >= sizeof(bufout))
                 bufout[sizeof(bufout)-1] = '\0';
diff --git a/ui_txt.c b/ui_txt.c
@@ -78,7 +78,7 @@ uistatus(char *fmt, ...)
 
         if (n < sizeof(bufout)-1) {
                 n += snprintf(bufout + n, sizeof(bufout) - n,
-                              " [Press Enter to continue ā˜ƒ]");
+                              " [Press Enter to continue \xe2\x98\x83]");
         }
         if (n >= sizeof(bufout))
                 bufout[sizeof(bufout)-1] = '\0';