$ git clone http://tcclient.ion.nu/tc_client.git
commit 11a9d55adc09e849926edeba2479aea5d2de3636
Author: Alicia <...>
Date: Wed May 24 14:44:22 2017 +0200
Bugfix: use //IGNORE to skip characters instead of freezing if the locale can't represent them.
diff --git a/ChangeLog b/ChangeLog
index ca0a5ce..bff8be4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -13,6 +13,7 @@ Bugfix: return -1 as socket if connectto() fails.
When getting site and channel from a URL, ignore anything after a slash after the channel name.
Added a /quit command.
Workaround for the new captcha mechanism.
+Bugfix: use //IGNORE to skip characters instead of freezing if the locale can't represent them.
modbot: use https instead of http and use the tcclient subdomain since some DNSes have trouble with underscores.
modbot: added an option (--no-unapproved) to not add any unapproved videos to queue (videos still get approved by mods requesting or playing them manually)
tc_client-gtk: fixed a race-condition in the builtin video player.
diff --git a/numlist.c b/numlist.c
index b4ec616..380a3b4 100644
--- a/numlist.c
+++ b/numlist.c
@@ -1,6 +1,6 @@
/*
tc_client, a simple non-flash client for tinychat(.com)
- Copyright (C) 2014-2015 alicia@ion.nu
+ Copyright (C) 2014-2015, 2017 alicia@ion.nu
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
@@ -47,7 +47,7 @@ char* fromnumlist(char* in, size_t* outlen)
}
string[len]=0;
- iconv_t cd=iconv_open("", "utf-16"ENDIAN);
+ iconv_t cd=iconv_open("//IGNORE", "utf-16"ENDIAN);
char* outbuf=malloc(len*4);
char* i_out=outbuf;
char* i_in=(char*)string;