Remove UTF-8 chars from source files - sacc - sacc(omys), simple console gopher… | |
git clone git://bitreich.org/sacc/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65… | |
Log | |
Files | |
Refs | |
Tags | |
LICENSE | |
--- | |
commit 8f6054695180eb9181e94cc8faa8cb941144891a | |
parent ba3bd1d88313cb8b876bc5d05de3d7449c03f38b | |
Author: Quentin Rameau <[email protected]> | |
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_stre… | |
+ 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(e… | |
+ 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'; |