Mercurial > mplayer.hg
comparison mp_msg.c @ 14542:4a6b79a1ad52
remove all setlocale calls, they break the behaviour of sscanf and
strcasecmp, especially with tr_TR locale - and do not seem to be good for
anything.
author | reimar |
---|---|
date | Thu, 20 Jan 2005 13:22:53 +0000 |
parents | 1e04ac498440 |
children | e2e231134056 |
comparison
equal
deleted
inserted
replaced
14541:bef9d6dc2333 | 14542:4a6b79a1ad52 |
---|---|
34 #ifdef MP_DEBUG | 34 #ifdef MP_DEBUG |
35 fprintf(stdout, "Using GNU internationalization\n"); | 35 fprintf(stdout, "Using GNU internationalization\n"); |
36 fprintf(stdout, "Original domain: %s\n", textdomain(NULL)); | 36 fprintf(stdout, "Original domain: %s\n", textdomain(NULL)); |
37 fprintf(stdout, "Original dirname: %s\n", bindtextdomain(textdomain(NULL),NULL)); | 37 fprintf(stdout, "Original dirname: %s\n", bindtextdomain(textdomain(NULL),NULL)); |
38 #endif | 38 #endif |
39 setlocale(LC_ALL, ""); /* set from the environment variables */ | |
40 bindtextdomain("mplayer", PREFIX"/share/locale"); | 39 bindtextdomain("mplayer", PREFIX"/share/locale"); |
41 textdomain("mplayer"); | 40 textdomain("mplayer"); |
42 #ifdef MP_DEBUG | 41 #ifdef MP_DEBUG |
43 fprintf(stdout, "Current domain: %s\n", textdomain(NULL)); | 42 fprintf(stdout, "Current domain: %s\n", textdomain(NULL)); |
44 fprintf(stdout, "Current dirname: %s\n\n", bindtextdomain(textdomain(NULL),NULL)); | 43 fprintf(stdout, "Current dirname: %s\n\n", bindtextdomain(textdomain(NULL),NULL)); |