Skip to content
Browse files

fixed #8

  • Loading branch information...
1 parent 399074e commit 6f0d61bfc29353ff10f21ed0a49977b0346bafee @naomichi-y committed Apr 17, 2015
Showing with 2 additions and 6 deletions.
  1. +2 −6 phpSyntaxChecker.py
View
8 phpSyntaxChecker.py
@@ -1,5 +1,5 @@
import sublime, sublime_plugin
-import re, sys, subprocess
+import os, re, sys, subprocess
class phpSyntaxCheckerCommand(sublime_plugin.EventListener):
# Command refers to $PATH environment variable
@@ -17,11 +17,7 @@ def on_post_save(self, view):
stdout = subprocess.PIPE,
stderr = subprocess.PIPE).communicate()
- if sublime.platform() == "windows":
- encoding = "sjis"
-
- else:
- encoding = "utf-8"
+ encoding = sys.getfilesystemencoding()
stdout = response[0].decode(encoding)
stderr = response[1].decode(encoding)

0 comments on commit 6f0d61b

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