1
mirror of https://code.videolan.org/videolan/vlc synced 2024-10-15 08:37:59 +02:00
vlc/include/charset.h
Christophe Massiot adf38793e7 * src/misc/charset.c: New function vlc_fix_readdir_charset. It is used
under Mac OS X to transform UTF-8-MAC returned by readdir() into
   UTF-8. Darwin always uses UTF-8 internally, so we vlc_current_charset
   should always return UTF-8. Also made vlc_current_charset()
   thread-safe and added a few missing const's.
2005-08-04 19:09:15 +00:00

38 lines
1.5 KiB
C

/*****************************************************************************
* charset.h: Determine a canonical name for the current locale's character encoding.
*****************************************************************************
* Copyright (C) 2003-2005 the VideoLAN team
* $Id$
*
* Author: Derk-Jan Hartman <thedj at users.sourceforge.net>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
*****************************************************************************/
# ifdef __cplusplus
extern "C" {
# endif
VLC_EXPORT( vlc_bool_t, vlc_current_charset, ( char ** ) );
VLC_EXPORT( void, LocaleFree, ( const char * ) );
VLC_EXPORT( char *, FromLocale, ( const char * ) );
VLC_EXPORT( char *, ToLocale, ( const char * ) );
VLC_EXPORT( char *, EnsureUTF8, ( char * ) );
VLC_EXPORT( char *, vlc_fix_readdir_charset, ( vlc_object_t *, const char * ) );
# ifdef __cplusplus
}
# endif