mirror of
https://code.videolan.org/videolan/vlc
synced 2024-08-14 21:25:09 +02:00
* Fix src/misc/charset on platforms without setlocale. In that case we pass NULL to FindFallbackEncoding
This commit is contained in:
parent
4f617c5ef1
commit
fb847b394c
@ -564,7 +564,11 @@ const char *FindFallbackEncoding( const char *locale )
|
|||||||
*/
|
*/
|
||||||
const char *GetFallbackEncoding( void )
|
const char *GetFallbackEncoding( void )
|
||||||
{
|
{
|
||||||
|
#if HAVE_SETLOCALE
|
||||||
return FindFallbackEncoding( setlocale( LC_CTYPE, NULL ) );
|
return FindFallbackEncoding( setlocale( LC_CTYPE, NULL ) );
|
||||||
|
#else
|
||||||
|
return FindFallbackEncoding( NULL );
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user