sublime-less2css icon indicating copy to clipboard operation
sublime-less2css copied to clipboard

Fix/file encoding

Open tbusser-itouch opened this issue 12 years ago • 3 comments

Tim, I think I fixed the problem with file names containing a special char. I've tested on Windows 7 and on OSX 10.8.4. It seems to work well on these systems but I was wondering if you have something else at your disposal to test this fix before rolling it out.

tbusser-itouch avatar Jun 10 '13 21:06 tbusser-itouch

I should be able to test on ubuntu in the next few days

timdouglas avatar Jun 11 '13 07:06 timdouglas

Looks like it fails on ubuntu 12.04

Tried to save a file called téstubuntu.less

Traceback (most recent call last):
  File "./sublime_plugin.py", line 362, in run_
  File "./less2css.py", line 45, in run
  File "./lesscompiler.py", line 83, in convertOne
  File "./lesscompiler.py", line 154, in convertLess2Css
  File ".\posixpath.py", line 70, in join
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 2: ordinal not in range(128)

timdouglas avatar Jun 12 '13 08:06 timdouglas

Okay, I will have a look at it... perhaps somewhere I need to add a check for Linux or something.

tbusser-itouch avatar Jun 18 '13 06:06 tbusser-itouch