vfs/vfs.c: Replace str_conv_t to GIConv
Этот коммит содержится в:
родитель
cada92062a
Коммит
f9ab791ac8
@ -67,7 +67,7 @@ struct vfs_openfile {
|
|||||||
|
|
||||||
struct vfs_dirinfo{
|
struct vfs_dirinfo{
|
||||||
DIR *info;
|
DIR *info;
|
||||||
str_conv_t converter;
|
GIConv converter;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -383,14 +383,14 @@ vfs_supported_enconding (const char *encoding) {
|
|||||||
*/
|
*/
|
||||||
static int
|
static int
|
||||||
_vfs_translate_path (const char *path, int size,
|
_vfs_translate_path (const char *path, int size,
|
||||||
str_conv_t defcnv, GString *buffer)
|
GIConv defcnv, GString *buffer)
|
||||||
{
|
{
|
||||||
const char *semi;
|
const char *semi;
|
||||||
const char *ps;
|
const char *ps;
|
||||||
const char *slash;
|
const char *slash;
|
||||||
int state = 0;
|
int state = 0;
|
||||||
static char encoding[16];
|
static char encoding[16];
|
||||||
str_conv_t coder;
|
GIConv coder;
|
||||||
int ms;
|
int ms;
|
||||||
|
|
||||||
if (size == 0) return 0;
|
if (size == 0) return 0;
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user