Display incoming UTF-8 natively, convert only outgoing to ISO-8859-1

- Stop converting incoming text to ISO-8859-1 for display
- Terminal is UTF-8, so pass through directly (åäö, Cyrillic, etc.)
- Keep ISO-8859-1 conversion only for outgoing messages
- Add irc.log to .gitignore
This commit is contained in:
2026-04-29 12:34:55 +02:00
parent 12a9127af8
commit 354f0eb8e9
4 changed files with 9 additions and 36 deletions
+3 -4
View File
@@ -441,10 +441,9 @@ static void handle_line(char *line)
size_t rawlen = strlen(line);
log_raw(line, rawlen);
char converted[BUF_SIZE];
to_iso8859_1((unsigned char *)line, strlen(line),
converted, sizeof(converted));
/* Incoming text is displayed as-is (terminal is UTF-8).
* No conversion needed for display. */
char *converted = line;
if (strncmp(converted, "PING ", 5) == 0) {
irc_send_raw("PONG %s", converted + 5);