On 25/11/2014 06:53, Prof Brian Ripley wrote:
On 25/11/2014 01:25, MacQueen, Don wrote:
Sorry, your email was undecipherable because you sent HTML formatted
email.
Please send plain text


Also, the 'at a minimum' information requested by the posting guide is
essential here (which OS and locale, in particular).  In general file
names not in the locale's encoding are unsupported.

An off-list reply indicated this was Windows XP. Although the message body was unreadable, the gist is in the subject line.

From ?list.files under Windows

  path must specify paths which can be represented in the current
  codepage.

whereas ?file.exists says

  Most of these functions accept UTF-8 filepaths not valid in the
  current locale.

So this is documented behaviour.

[For anyone curious as to why list.files is different: note that it does regexp pattern matching. Adding support for Unicode file paths would not be impossible but it would require hundreds of lines of Windows-only code.]

--
Brian D. Ripley,                  rip...@stats.ox.ac.uk
Emeritus Professor of Applied Statistics, University of Oxford
1 South Parks Road, Oxford OX1 3TG, UK

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to