Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

set LC_COLLATE to "C" when calling roxygenize

  • Loading branch information...
commit 5691cc44ce38e56bba7279f32748109ec176c746 1 parent 60f3926
JJ Allaire authored March 29, 2013
6  src/cpp/session/modules/build/SessionBuild.cpp
@@ -384,7 +384,11 @@ class Build : boost::noncopyable,
384 384
       // format the command to send to R
385 385
       boost::format cmdFmt(
386 386
          "capture.output(suppressPackageStartupMessages("
387  
-              "{library(roxygen2); %1%;}"
  387
+               "{oldLC <- Sys.getenv('LC_COLLATE', unset=NA); "
  388
+               " Sys.setenv(LC_COLLATE = 'C'); "
  389
+               " library(roxygen2); "
  390
+               " %1%; "
  391
+               " if (!is.na(oldLC)) Sys.setenv(LC_COLLATE = oldLC); }"
388 392
           "))");
389 393
       std::string cmd = boost::str(cmdFmt % roxygenizeCall);
390 394
 

0 notes on commit 5691cc4

Please sign in to comment.
Something went wrong with that request. Please try again.