Mercurial > mplayer.hg
comparison libmpcodecs/ad_libvorbis.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 | a22f1b86ec0f |
children | f3cf481bbcda |
comparison
equal
deleted
inserted
replaced
14541:bef9d6dc2333 | 14542:4a6b79a1ad52 |
---|---|
5 #include <stdarg.h> | 5 #include <stdarg.h> |
6 #include <math.h> | 6 #include <math.h> |
7 | 7 |
8 #include "config.h" | 8 #include "config.h" |
9 #include "ad_internal.h" | 9 #include "ad_internal.h" |
10 | |
11 #ifdef USE_SETLOCALE | |
12 #include <locale.h> | |
13 #endif | |
14 | 10 |
15 #ifdef HAVE_OGGVORBIS | 11 #ifdef HAVE_OGGVORBIS |
16 | 12 |
17 static ad_info_t info = | 13 static ad_info_t info = |
18 { | 14 { |
48 va_list va; | 44 va_list va; |
49 int clen, ret; | 45 int clen, ret; |
50 | 46 |
51 va_start( va, format ); | 47 va_start( va, format ); |
52 clen = strlen( comment ); | 48 clen = strlen( comment ); |
53 #ifdef USE_SETLOCALE | |
54 setlocale( LC_NUMERIC, "C" ); | |
55 #endif | |
56 ret = strncasecmp( ptr, comment, clen) == 0 ? vsscanf( ptr+clen, format, va ) : 0; | 49 ret = strncasecmp( ptr, comment, clen) == 0 ? vsscanf( ptr+clen, format, va ) : 0; |
57 #ifdef USE_SETLOCALE | |
58 setlocale( LC_NUMERIC, "" ); | |
59 #endif | |
60 va_end( va ); | 50 va_end( va ); |
61 | 51 |
62 return ret; | 52 return ret; |
63 } | 53 } |
64 | 54 |