dya2 / android-scripting

Automatically exported from code.google.com/p/android-scripting
0 stars 0 forks source link

sys.getfilesystemencoding() returns None; causes docutils error #575

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What device(s) are you experiencing the problem on?

NEC LifeTouchNote (A Japanese ANDROID device)

What firmware version are you running on the device?

Not known. Probably firmware version is not a problem.

What steps will reproduce the problem?

1. Open Python shell on an android device.
2. Enter 'import sys; print sys.filesystemencoding()'
3.

What is the expected output? What do you see instead?

A string "UTF-8" or "mbcs" expected, but sees None.
This causes an error in running docutils.
My purpose is to invoke docutils.

What version of the product are you using? On what operating system?

android 2.2 & PythonForAndroid_r4.apk

Please provide any additional information below.

sys.filesystemencoding() is called within utils.py of docutils.

Original issue reported on code.google.com by textdire...@gmail.com on 30 Sep 2011 at 1:39

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Hit this too, one can check it happend on several Android version (2.2, 2.3, 
3.1 checked). Used PythonForAndroid_r5.apk

This made os.path.isdir(x), os.path.isfile(x), os.listdir(x), os.remove(x) [x 
unicode] to throw UnicodeEncodeError.

Original comment by anthony....@gmail.com on 26 Nov 2011 at 10:27

GoogleCodeExporter commented 9 years ago
This is really a Python issues, and should be moved to 
http://code.google.com/p/python-for-android/

Original comment by rjmatthews62 on 26 Nov 2011 at 9:42

GoogleCodeExporter commented 9 years ago
Created http://code.google.com/p/python-for-android/issues/detail?id=35

Original comment by anthony....@gmail.com on 28 Nov 2011 at 10:28