From ripley at stats.ox.ac.uk  Thu Apr 24 11:50:34 2008
From: ripley at stats.ox.ac.uk (Prof Brian Ripley)
Date: Thu, 24 Apr 2008 10:50:34 +0100 (BST)
Subject: [Rd] R-gui and chinese character
In-Reply-To: <loom.20080424T084807-584@post.gmane.org>
References: <loom.20080424T084807-584@post.gmane.org>
Message-ID: <alpine.LFD.1.10.0804241001510.17042@gannet.stats.ox.ac.uk>

On Thu, 24 Apr 2008, Dieter Menne wrote:

> I had to test an R-application that works with Chinese character. Just for fun,
> I took one character from WikiPedia, pasted it into R-Gui, and pressed enter.
> Rgui smoothly closed down without saying anything else.
>
> I am aware, this is not serious....
>
> $BK1(J

Yes, nobody has said that you can paste in Unicode chars that are not 
valid in your locale.  Unfortunately there seems to be a bug in the MSVCRT 
function used, and this ends up returning an empty string to the R engine, 
which takes that as EOF.  On my machine, I can click on 'cancel'.

The relevant code was altered by our Japanese colleagues during alpha 
testing to make things work for them.  We'll see if we can make it more 
robust.

Thank you for the report, but it would have been *much* preferable to have 
received it in the alpha/beta/RC period (and such reports are less likely 
to be overlooked if sent to R-windows).

>
>
> R version 2.7.0 (2008-04-22)
> Windows Vista, Service Pack 1
> English locale, German Vista
>
> Dieter
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595


[Rd] R-gui and chinese character
Prof Brian Ripley