lanconnected / EnhanceIO

EnhanceIO Open Source for Linux
Other
101 stars 31 forks source link

eio_cli does not work with Python3 #34

Open HJarausch opened 6 years ago

HJarausch commented 6 years ago

Python3 is very different from Python2 when it comes to handling of strings and bytes. Therefore, a simple invocation of 2to3 does not suffice. Byte-strings have to be decoded and strings to be encoded. In my attached patch, I use "latin-1". This might be changed to "utf-8" if one uses file names which contain characters only present in utf-8. eio_cli_Python3.patch.zip

CPT-GrayWolf commented 5 years ago

I personally would support updating eio_cli to Python3. I just don't know why this wasn't made as a pull request. Also utf-8 is pretty the standard for Linux in general.