Skip to content

R script editor fails to read script longer then 1000 chars (non-English language settings) (PR#9254)

2 messages · shtirlitz at verizon.net, Brian Ripley

#
Full_Name: Otto Shtirlitz
Version: 2.3.1
OS: Win XP SP2 
Submission from: (NULL) (71.102.102.246)


I believe it's the same situation as described in bug 9248. R script editor
cannot open file exceeding 1000 characters even if created in the same editor.
File is
all ANSI with symbols < 128 and with window line endings CR/LF (0x0D 0x0A).
The trick is the local settings : even if the OS is US if the language settings
for non-Unicode (Control Panel\Regional and Language options\Advanced\Language
for non-Unicode programs) is set to Russian in my case R only reads the first
1000 chars (and appends some garbage). If this setting is switched back to
English the problem goes away.
#
Yes, thank you.  The conditions are that you are running in a locale with 
a different encoding from the system codepage, when a limit in graphapp 
was hit (so although the script is read correctly, it was not displayed 
correctly).

Fixed for 2.4.0.
On Tue, 26 Sep 2006, shtirlitz at verizon.net wrote: