Modify bytevectors/string conversions to allow wide strings
authorMichael Gran <spk121@yahoo.com>
Wed, 28 Oct 2009 13:24:23 +0000 (06:24 -0700)
committerMichael Gran <spk121@yahoo.com>
Wed, 28 Oct 2009 13:24:23 +0000 (06:24 -0700)
commit3a5bc4fadac5b1574f081e7ecd3a043cbd395794
tree1d87ed9ca741e433613c28bbc61e69a0a5021915
parentb02b05332f45fc6ac4f99556cda9fb7ee894e673
Modify bytevectors/string conversions to allow wide strings

The bytevector to string conversion functions were accomplished
by converting via locale strings.  This did not allow conversions
of wide strings in an 8-bit locale.  This is avoided by using knowledge
of the storage format of the string.

* libguile/bytevectors.c (STRING_TO_UTF, scm_string_to_utf8): modify
  string to bytevector conversion to use internal string information
  (UTF_TO_STRING, scm_utf8_to_string): modify bytevector to string
  conversion
libguile/bytevectors.c