commit 646f1a76ed70ab1399532653136f7e4bc7466ef7
parent 4a61296f576a5c6b2968297fab9db4687a7b4213
Author: Claudio Alessi <smoppy@gmail.com>
Date: Wed, 13 Apr 2016 21:45:19 +0200
Be portable to all locales.
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/myadm.c b/myadm.c
@@ -547,6 +547,7 @@ void
setup(void) {
struct sigaction sa;
+ setlocale(LC_CTYPE, "");
mysql = mysql_init(NULL);
if(mysql_real_connect(mysql, dbhost, dbuser, dbpass, NULL, 0, NULL, 0) == NULL)
die("Cannot connect to the database.\n");