Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: configure tests for iconv



Oliver Kiddle wrote:
> > can't do charset conversion, but as far as I can find out it always did;
> > probably something outside the C code needs setting up.
> 
> Have you tried with a simple character in the basic ASCII range such as
> \\u0061. If that works then it may be related to however locales are
> configured in Cygwin.

No, that doesn't work either.  The error is from returning -1 from
    	    	    cd = iconv_open(nl_langinfo(CODESET), "ISO-10646");

> Does /usr/bin/printf's \u work?

This fails too, but with the slightly odd error "invalid universal
character name".  It's not a problem with the input format, however,
since that complains about missing hexadecimal digits if you get it wrong.

> Also worth checking is
>   zmodload zsh/langinfo
>   print $langinfo[CODESET]

This gives US-ASCII, which might be part of the problem, though I really
haven't the faintest idea.  A quick scan of the regional and language
settings didn't suggest anything.

-- 
Peter Stephenson <pws@xxxxxxx>                  Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK                          Tel: +44 (0)1223 692070


**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

**********************************************************************



Messages sorted by: Reverse Date, Date, Thread, Author