shtirlitz at verizon.net
2006-Sep-26 03:49 UTC
[Rd] R script editor fails to read script longer then 1000 chars (non-English language settings) (PR#9254)
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.
Prof Brian Ripley
2006-Sep-26 07:45 UTC
[Rd] (PR#9254)R script editor fails to read script longer then 1000 chars (non-English language settings)
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:> 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. > > ______________________________________________ > 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