diff options
author | Kalle Wallin <kaw@linux.se> | 2004-06-06 16:40:16 +0000 |
---|---|---|
committer | Kalle Wallin <kaw@linux.se> | 2004-06-06 16:40:16 +0000 |
commit | e76e311607a7893b3ffc6e1907e8c28d8983d2d1 (patch) | |
tree | 3bce2f613e475df11f12e2de1dd73022dd6f9033 /src/main.c | |
parent | ab7b4998b156a959c21b8d277f5ae114f48427c9 (diff) | |
download | mpd-e76e311607a7893b3ffc6e1907e8c28d8983d2d1.tar.gz mpd-e76e311607a7893b3ffc6e1907e8c28d8983d2d1.tar.xz mpd-e76e311607a7893b3ffc6e1907e8c28d8983d2d1.zip |
Added wreadln.c, wreadln.h a simple line editor
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@1351 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/main.c b/src/main.c index 1a3573e7a..176bcf8a0 100644 --- a/src/main.c +++ b/src/main.c @@ -69,13 +69,12 @@ main(int argc, const char *argv[]) gboolean connected; const char *charset = NULL; - /* initialize charset */ #ifdef HAVE_LOCALE_H - if( setlocale(LC_CTYPE,"") == NULL ) - { - g_printerr("setlocale() - failed!\n"); - exit(EXIT_FAILURE); - } + /* time and date formatting */ + setlocale(LC_TIME,""); + /* charset */ + setlocale(LC_CTYPE,""); + /* initialize charset conversions */ charset_init(g_get_charset(&charset)); D(printf("charset: %s\n", charset)); #endif |