On Thu, May 17, 2012 at 6:31 AM, cm <xiao.ao.jiang.hu...@gmail.com> wrote:

> > (print "好") ;<==============================================chinese
> language
>
> Condition of type: SIMPLE-ERROR
> Read or write operation to stream #<input file "stdin"> signaled an error.
> Explanation: Invalid argument.
>

This seems to have something to do with Windows. If I used read() on the
terminal and I input chinese characters, the C library will complain.
Probably it is trying to map the input (Unicode, chinese, etc) to a
character type and it fails miserably. If I instead use utf8, nothing bad
happens. Really weird.

Juanjo

-- 
Instituto de Física Fundamental, CSIC
c/ Serrano, 113b, Madrid 28006 (Spain)
http://juanjose.garciaripoll.googlepages.com
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Ecls-list mailing list
Ecls-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ecls-list

Reply via email to