Skip to content

Instantly share code, notes, and snippets.

@techotaku
techotaku / Ruby_Albino_Windows.patch
Created September 1, 2012 08:51 — forked from jonforums/0001-albino-windows-refactor.patch
Ruby Albino Windows 补丁 - 修复Jekyll在Windows下使用Pygments进行语法高亮时Liquid提示bad file descriptor错误的问题
diff --git a/lib/albino.rb b/lib/albino.rb
index 387c8e9..b77d55e 100644
--- a/lib/albino.rb
+++ b/lib/albino.rb
@@ -1,4 +1,5 @@
require 'posix-spawn'
+require 'rbconfig'
##
# Wrapper for the Pygments command line tool, pygmentize.