diff options
Diffstat (limited to 'gui/interface.c')
-rw-r--r-- | gui/interface.c | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/gui/interface.c b/gui/interface.c index 1dc00ba184..b4229e3994 100644 --- a/gui/interface.c +++ b/gui/interface.c @@ -157,49 +157,6 @@ void greplace(char ***list, const char *search, const char *replace) (*list)[i] = gstrdup(replace); (*list)[i + 1] = NULL; } - -#ifdef USE_ICONV -char * gconvert_uri_to_filename( char * str ) -{ - iconv_t d; - char * out = strdup( str ); - char * tmp = NULL; - char * ize; - size_t inb,outb; - char * charset = "ISO8859-1"; - char * cs; - - if ( !strchr( str,'%' ) ) return str; - - { - char * t = calloc( 1,strlen( out ) ); - int i,c = 0; - for ( i=0;i < (int)strlen( out );i++ ) - if ( out[i] != '%' ) t[c++]=out[i]; - else - { - char tmp[5] = "0xXX"; -// if ( out[++i] == '%' ) { t[c++]='%'; continue; }; - tmp[2]=out[++i]; tmp[3]=out[++i]; - t[c++]=(char)strtol( tmp,(char **)NULL,0 ); - } - free( out ); - out=t; - } - - if ( (cs=getenv( "CHARSET" )) && *cs ) charset=cs; - - inb=outb=strlen( out ); - tmp=calloc( 1,outb + 1 ); - ize=tmp; - d=iconv_open( charset,"UTF-8" ); - if ( (iconv_t)(-1) == d ) return str; - iconv( d,&out,&inb,&tmp,&outb ); - iconv_close( d ); - free( out ); - return ize; -} -#endif void guiInit( void ) { |