Commit 91879fc7 authored by Pavlov Konstantin's avatar Pavlov Konstantin

write comments in config file in user locale instead of utf

parent 8b836ad7
...@@ -1171,7 +1171,7 @@ static int SaveConfigFile( vlc_object_t *p_this, const char *psz_module_name, ...@@ -1171,7 +1171,7 @@ static int SaveConfigFile( vlc_object_t *p_this, const char *psz_module_name,
fprintf( file, "[%s]", p_parser->psz_object_name ); fprintf( file, "[%s]", p_parser->psz_object_name );
if( p_parser->psz_longname ) if( p_parser->psz_longname )
fprintf( file, " # %s\n\n", p_parser->psz_longname ); utf8_fprintf( file, " # %s\n\n", p_parser->psz_longname );
else else
fprintf( file, "\n\n" ); fprintf( file, "\n\n" );
...@@ -1207,7 +1207,7 @@ static int SaveConfigFile( vlc_object_t *p_this, const char *psz_module_name, ...@@ -1207,7 +1207,7 @@ static int SaveConfigFile( vlc_object_t *p_this, const char *psz_module_name,
case CONFIG_ITEM_BOOL: case CONFIG_ITEM_BOOL:
case CONFIG_ITEM_INTEGER: case CONFIG_ITEM_INTEGER:
if( p_item->psz_text ) if( p_item->psz_text )
fprintf( file, "# %s (%s)\n", p_item->psz_text, utf8_fprintf( file, "# %s (%s)\n", p_item->psz_text,
(p_item->i_type == CONFIG_ITEM_BOOL) ? (p_item->i_type == CONFIG_ITEM_BOOL) ?
_("boolean") : _("integer") ); _("boolean") : _("integer") );
if( i_value == p_item->i_value_orig ) if( i_value == p_item->i_value_orig )
...@@ -1219,7 +1219,7 @@ static int SaveConfigFile( vlc_object_t *p_this, const char *psz_module_name, ...@@ -1219,7 +1219,7 @@ static int SaveConfigFile( vlc_object_t *p_this, const char *psz_module_name,
case CONFIG_ITEM_KEY: case CONFIG_ITEM_KEY:
if( p_item->psz_text ) if( p_item->psz_text )
fprintf( file, "# %s (%s)\n", p_item->psz_text, utf8_fprintf( file, "# %s (%s)\n", p_item->psz_text,
_("key") ); _("key") );
if( i_value == p_item->i_value_orig ) if( i_value == p_item->i_value_orig )
fprintf( file, "#" ); fprintf( file, "#" );
...@@ -1233,7 +1233,7 @@ static int SaveConfigFile( vlc_object_t *p_this, const char *psz_module_name, ...@@ -1233,7 +1233,7 @@ static int SaveConfigFile( vlc_object_t *p_this, const char *psz_module_name,
case CONFIG_ITEM_FLOAT: case CONFIG_ITEM_FLOAT:
if( p_item->psz_text ) if( p_item->psz_text )
fprintf( file, "# %s (%s)\n", p_item->psz_text, utf8_fprintf( file, "# %s (%s)\n", p_item->psz_text,
_("float") ); _("float") );
if( f_value == p_item->f_value_orig ) if( f_value == p_item->f_value_orig )
fprintf( file, "#" ); fprintf( file, "#" );
...@@ -1244,7 +1244,7 @@ static int SaveConfigFile( vlc_object_t *p_this, const char *psz_module_name, ...@@ -1244,7 +1244,7 @@ static int SaveConfigFile( vlc_object_t *p_this, const char *psz_module_name,
default: default:
if( p_item->psz_text ) if( p_item->psz_text )
fprintf( file, "# %s (%s)\n", p_item->psz_text, utf8_fprintf( file, "# %s (%s)\n", p_item->psz_text,
_("string") ); _("string") );
if( (!psz_value && !p_item->psz_value_orig) || if( (!psz_value && !p_item->psz_value_orig) ||
(psz_value && p_item->psz_value_orig && (psz_value && p_item->psz_value_orig &&
......
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