guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Trouble running guile cross-compiled using buildroot


From: Ludovic Courtès
Subject: Re: Trouble running guile cross-compiled using buildroot
Date: Fri, 17 Jun 2016 10:10:34 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)

Hi,

Thanks for sending a clarified backtrace!

Peter Spierenburg <address@hidden> skribis:

> #67 0xb6f1df80 in scm_encoding_error (
>     subr=0xb6faa858 <__func__.19454> "scm_to_stringn", err=22,
>     message=0xb6faa5c8 "cannot convert narrow string to output locale",
> ---Type <return> to continue, or q <return> to quit---
>     port=0x4, chr=0x4) at strings.c:1486
> #68 0xb6f1f7d8 in scm_to_stringn (str=0x104790, lenp=0x0,
>     encoding=0xb6ac6a78 <_nl_C_codeset> "ANSI_X3.4-1968",
>     handler=SCM_FAILED_CONVERSION_QUESTION_MARK) at strings.c:2106
> #69 0xb6f1ed2c in scm_to_locale_stringn (str=0x104790, lenp=0x0)
>     at strings.c:1820
> #70 0xb6f1ece8 in scm_to_locale_string (str=0x104790) at strings.c:1814
> #71 0xb6e9e198 in search_path (path=0x101090, filename=0x104790,
>     extensions=0x304, require_exts=0x4, stat_buf=0xbefffae8) at load.c:534
> #72 0xb6e9f458 in scm_init_eval_in_scheme () at load.c:1059
> #73 0xb6e908c4 in scm_i_init_guile (base=0xbefffbc0) at init.c:502

Guile converts file names to the current locale encoding before passing
them to the POSIX system calls.

What happens here is that the current locale encoding that is detected
is ANSI_X3.4-1968 (aka. ASCII), but converting the string (which is most
likely ASCII) to that encoding fails.

This is a bit ridiculous, but except for UTF-8 and ISO-8859-1 which
Guile handles internally, it resorts to iconv(3).  Apparently iconv(3)
doesn’t know this encoding name, hence the failure.

What libc do you use?

Could you try running Guile in a UTF-8 or ISO-8859-1 locale, for
instance with “export LC_ALL=en_US.utf8”?

HTH,
Ludo’.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]