aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
authorKalle Wallin <kaw@linux.se>2004-06-06 16:40:16 +0000
committerKalle Wallin <kaw@linux.se>2004-06-06 16:40:16 +0000
commite76e311607a7893b3ffc6e1907e8c28d8983d2d1 (patch)
tree3bce2f613e475df11f12e2de1dd73022dd6f9033 /src/main.c
parentab7b4998b156a959c21b8d277f5ae114f48427c9 (diff)
downloadmpd-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.c11
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