aboutsummaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
authorBrandon Mathis <brandon@imathis.com>2014-01-30 09:32:35 -0800
committerBrandon Mathis <brandon@imathis.com>2014-01-30 09:32:35 -0800
commitfe6ef744ede363688e8538ac091519e00c30487c (patch)
tree978e550c4404138c422c4ed55a42ba4aea9d797d /Rakefile
parent8f51bdc0fd0323c4a6bd9fd645f3abb73baccd08 (diff)
parent3477eaf8344f0eeeb4e7c56316d67077eb83094f (diff)
downloadmy_new_personal_website-fe6ef744ede363688e8538ac091519e00c30487c.tar.xz
my_new_personal_website-fe6ef744ede363688e8538ac091519e00c30487c.zip
Merge pull request #1431 from Haacked/windows-code-page-fix
Set the codepage to 65001 before generating
Diffstat (limited to '')
-rw-r--r--Rakefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Rakefile b/Rakefile
index ae0765ae..f2372aae 100644
--- a/Rakefile
+++ b/Rakefile
@@ -27,6 +27,10 @@ new_post_ext = "markdown" # default new post file extension when using the n
new_page_ext = "markdown" # default new page file extension when using the new_page task
server_port = "4000" # port for preview server eg. localhost:4000
+if (/cygwin|mswin|mingw|bccwin|wince|emx/ =~ RUBY_PLATFORM) != nil
+ puts '## Set the codepage to 65001 for Windows machines'
+ `chcp 65001`
+end
desc "Initial setup for Octopress: copies the default theme into the path of Jekyll's generator. Rake install defaults to rake install[classic] to install a different theme run rake install[some_theme_name]"
task :install, :theme do |t, args|