mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-10 22:10:21 +02:00
Fix escape sequence normalization for wide strings
* libguile/strings.c (scm_to_stringn): convert unistring escapes to guile escapes for both wide and narrow strings
This commit is contained in:
parent
fac32b518e
commit
5f5920e012
1 changed files with 2 additions and 0 deletions
|
@ -1791,6 +1791,8 @@ scm_to_stringn (SCM str, size_t *lenp, const char *encoding,
|
|||
scm_list_2 (scm_from_locale_string (enc),
|
||||
str));
|
||||
}
|
||||
if (handler == SCM_FAILED_CONVERSION_ESCAPE_SEQUENCE)
|
||||
unistring_escapes_to_guile_escapes (&buf, &len);
|
||||
}
|
||||
if (lenp)
|
||||
*lenp = len;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue