1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-19 19:20:23 +02:00

Locale is default port encoding

* libguile/ports.c (scm_init_ports): Use the locale as the default
  charset.  This allows GUILE_INSTALL_LOCALE=1 to work properly,
  harmonizing the default port encoding with the installed locale.
This commit is contained in:
Andy Wingo 2016-06-24 07:43:58 +02:00
parent a14e873cce
commit e2c1659d95
2 changed files with 4 additions and 0 deletions

View file

@ -2911,6 +2911,9 @@ scm_init_ports ()
scm_make_fluid_with_default (SCM_BOOL_F));
scm_port_encoding_init = 1;
/* Use the locale as the default port encoding. */
scm_i_set_default_port_encoding (locale_charset ());
SCM_VARIABLE_SET (default_conversion_strategy_var,
scm_make_fluid_with_default (sym_substitute));
scm_conversion_strategy_init = 1;