Re: [Rd] possible bug in "R Editor"

From: Prof Brian Ripley <>
Date: Thu, 31 May 2012 17:50:29 +0100

On 31/05/2012 07:04, Wincent wrote:
> Dear all,
> I clicked "File-New Script" to open a R Editor, typed some commands in
> it and then saved it to a file. If the location where I tried to save
> the script contained Chinese Character, R Editor complained,
> Error: invalid input 'E:\Some.Chinese.Characters\new_file.R' in 'utf8towcs'
>> sessionInfo()
> R version 2.15.0 (2012-03-30)
> Platform: i386-pc-mingw32/i386 (32-bit)
> locale:
> [1] LC_COLLATE=Chinese (Simplified)_People's Republic of China.936
> [2] LC_CTYPE=Chinese (Simplified)_People's Republic of China.936
> [3] LC_MONETARY=Chinese (Simplified)_People's Republic of China.936
> [5] LC_TIME=Chinese (Simplified)_People's Republic of China.936
> attached base packages:
> [1] stats graphics grDevices utils datasets methods base
> loaded via a namespace (and not attached):
> [1] tools_2.15.0

It is not a bug in the editor. It may be a bug in iconv or other parts of the handling of wide characters in the save routine. I can see how the code can be simplified, but we really need to be able to reproduce this, and surely that was not the real example. (One of the problems is that the editor title has to be in the native encoding, so this has to be done in a Chinese version of Windows.)

Brian D. Ripley,        
Professor of Applied Statistics,
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

______________________________________________ mailing list
Received on Thu 31 May 2012 - 16:58:17 GMT

This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]

All messages

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 01 Jun 2012 - 09:32:01 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive