Commit fb847b39 authored by Derk-Jan Hartman's avatar Derk-Jan Hartman

* Fix src/misc/charset on platforms without setlocale. In that case we pass...

* Fix src/misc/charset on platforms without setlocale. In that case we pass NULL to FindFallbackEncoding
parent 4f617c5e
...@@ -564,7 +564,11 @@ const char *FindFallbackEncoding( const char *locale ) ...@@ -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
} }
/** /**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment