1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-20 03:30:27 +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

1
NEWS
View file

@ -148,6 +148,7 @@ More ARM cross-compilation targets are supported: "arm.*eb",
(<http://bugs.gnu.org/19883>)
** Ports
*** Setting GUILE_INSTALL_LOCALE=1 sets port default charset from locale
*** Fix port position handling on binary input ports
(<http://bugs.gnu.org/20302>)
*** Bytevector and custom binary ports to use ISO-8859-1

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;