1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-04-30 03:40:34 +02:00

Fix scm_init_struct dependency on port conversion handlers

* libguile/struct.c (scm_init_struct): Use scm_from_latin1_string to
  avoid locale-dependency for what is really a latin1 string.  Also
  avoids an early dependency on the default port conversion handler,
  though I wonder if using port conversion handlers in strings is the
  right thing.
This commit is contained in:
Andy Wingo 2016-04-14 11:04:53 +02:00
parent 110695c82e
commit cf80502c0a

View file

@ -990,10 +990,10 @@ scm_init_struct ()
OBJ once OBJ has undergone class redefinition. */
GC_REGISTER_DISPLACEMENT (2 * sizeof (scm_t_bits));
required_vtable_fields = scm_from_locale_string (SCM_VTABLE_BASE_LAYOUT);
required_vtable_fields = scm_from_latin1_string (SCM_VTABLE_BASE_LAYOUT);
scm_c_define ("standard-vtable-fields", required_vtable_fields);
required_applicable_fields = scm_from_locale_string (SCM_APPLICABLE_BASE_LAYOUT);
required_applicable_with_setter_fields = scm_from_locale_string (SCM_APPLICABLE_WITH_SETTER_BASE_LAYOUT);
required_applicable_fields = scm_from_latin1_string (SCM_APPLICABLE_BASE_LAYOUT);
required_applicable_with_setter_fields = scm_from_latin1_string (SCM_APPLICABLE_WITH_SETTER_BASE_LAYOUT);
scm_standard_vtable_vtable =
scm_i_make_vtable_vtable (required_vtable_fields);