convert filenames to current locale if needed / some implementation improvements

This commit is contained in:
Andrzej Rybczak
2009-01-15 20:34:35 +01:00
parent 8226b9b4a2
commit 24c308dac8
9 changed files with 66 additions and 79 deletions

View File

@@ -25,15 +25,18 @@
#include <config.h>
#endif
#if !defined(_UTF8) && defined(HAVE_ICONV_H)
#include <string>
#if !defined(_UTF8) && defined(HAVE_ICONV_H)
void init_current_locale();
void utf_to_locale(std::string &);
void locale_to_utf(std::string &);
std::string utf_to_locale_cpy(const std::string &s);
std::string locale_to_utf_cpy(const std::string &s);
void str_pool_utf_to_locale(char *&);
void str_pool_locale_to_utf(char *&);
@@ -44,6 +47,9 @@ void str_pool_locale_to_utf(char *&);
#define utf_to_locale(x);
#define locale_to_utf(x);
#define utf_to_locale_cpy(x) (x)
#define locale_to_utf_cpy(x) (x)
#define str_pool_utf_to_locale(x);
#define str_pool_locale_to_utf(x);