]> git.sesse.net Git - vlc/blobdiff - src/text/wincp.c
Parse vlcrc following American standards for numbers
[vlc] / src / text / wincp.c
index fe82f4a63abd0a9f3bf4297b8f60faab0e3fc52b..9e20513f79c82d314830cc1859af7fb26a4a7634 100644 (file)
 
 /*** We need your help to complete this file!! Look for FIXME ***/
 
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
 #include <vlc/vlc.h>
 
 #ifndef WIN32
@@ -215,7 +219,7 @@ const char *GetFallbackEncoding( void )
                 strcpy (buf, "ISO-8859-8");
                 break;
             default:
-                snprintf (buf, sizeof (buf), "CP%u", GetACP ());
+                snprintf (buf, sizeof (buf), "CP%u", cp);
         }
     }
     return buf;