Titanium JIRA Archive
Appcelerator Community (AC)

[AC-2815] codecs.py parse 0xE3 bug may be. BUILD FAILED occurred on 'Install to iOS Device'

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionWon't Fix
Resolution Date2012-08-11T16:10:20.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsios
ReporterTadashi Sugie
AssigneeMauro Parra-Miranda
Created2012-05-21T19:08:56.000+0000
Updated2016-03-08T07:47:44.000+0000

Description

app.js wrote following one line. // としてTi.U.PICKER_TYPE_DATEを Install to iOS Device , then BUILD FAILED occur. ---build.log--- UnicodeDecodeError: 'ascii' codec can't decode byte 0xe3 in position 43: ordinal not in range(128) Command /bin/sh failed with exit code 1 ** BUILD FAILED ** ---/build.log--- ---app.js source code hex dump --- [1036][sugie@mini-ssd:Resources]$od -cx app.js 0000000 / / と ** ** し ** ** て ** ** T i . U 2f2f e320 a881 81e3 e397 a681 6954 552e 0000020 . P I C K E R _ T Y P E _ D A T 502e 4349 454b 5f52 5954 4550 445f 5441 0000040 E を ** ** \n e345 9282 000a 0000045 [1036][sugie@mini-ssd:Resources]$ ---/app.js source code hex dump --- There are some 'e3' codes. May be codecs.py can not parse 'e3' code.

Attachments

FileDateSize
build.log2012-05-21T19:08:56.000+0000115419
TC-911_SDK2.0.1.GA2_ERROR.png2012-08-08T19:40:04.000+0000216909
TC-911_SDK2.0.2.GA_OK.png2012-08-08T19:40:04.000+0000409135
TC-911_SDK2.1.0.GA_OK.png2012-08-08T19:40:04.000+0000410380
TC-911_SDK2.1.1.GA_OK.png2012-08-08T19:40:04.000+0000408928

Comments

  1. Federico Casali 2012-08-07

    Tadashi, I cannot reproduce this issue. Is it still an issue for you? Which Titanium SDK are you currently using?
  2. Tadashi Sugie 2012-08-08

    I'm using SDK Version is 2.1.1.GA. I confirmed this bug. SDK 2.0.2 later not occurred this error.
  3. Federico Casali 2012-08-11

    Hi Tadashi, I've reproduced your issue while installing on device, my fault before. I have made some research and I found out that this is actually not a Titanium bug, but it's due to the following fact, also explained here http://docs.python.org/howto/unicode.html under the section 'Python 2.x’s Unicode Support' Basically all the argument of the unicode constructor should be 8-bit strings. In our case, ASCII encoding it's used for the conversion and what's happening is that a character greater than 127 is treated as an error. Thus, we cannot support this string character in the provided sample. Regards, Federico

JSON Source