| 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(-)
--- |
| @@ -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;
}
|
| @@ -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'; |
| @@ -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'; |