Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-10107] iOS: Build error while accessing the multi lingual filename

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2012-08-13T18:44:47.000+0000
Affected Version/sRelease 2.1.0
Fix Version/sSprint 2012-16 API, Release 3.0.0
ComponentsiOS
Labelscore, module_filesystem, qe-review, qe-testadded
ReporterNikhil Sharma
AssigneeSabil Rahim
Created2012-07-23T17:24:51.000+0000
Updated2014-06-19T12:43:55.000+0000

Description

I'm getting the build error when accessing a multi lingual filename. Please find the error logs attached.

Repo Steps

1. Run the below code in the app.js 2. Include the attached pdf file to the resources directory.
Titanium.UI.setBackgroundColor('#000');
    //creating the window
    var win1 = Titanium.UI.createWindow({
        title:'win 1',
        backgroundColor:'#fff'
        });
     //add window - navigation bar
     var modalWin = Ti.UI.createWindow();
     //nav bar
     var navmodal = Ti.UI.iPhone.createNavigationGroup({
        window:modalWin
        });
     win1.add(navmodal);
     //button for the nav bar
     var b2t = Titanium.UI.createButton({
       title:'Launch'
       });
     modalWin.RightNavButton = b2t;
     //button for the window
     var b1t = Titanium.UI.createButton({
       title:'Launch',
       height:40,
       width:200,
       top:270
       });
     win1.add(b1t);
     //Setting up the documentviewer
     var filename = Titanium.Filesystem.getFile('網上廣東話輸入法.pdf');
     z = Ti.UI.iPad.createDocumentViewer({url:filename.nativePath});
     //documentviewer with animation set on and a quicklook view poping up next to a view
     b1t.addEventListener('click', function(){z.show({animated:false,view:b2t});});
     //documentviewer with animation set off
     b2t.addEventListener('click', function(){z.show();});
     win1.open();

Attachments

FileDateSize
build.log2012-07-23T17:24:51.000+000038965
網上廣東話輸入法.pdf2012-07-23T17:24:51.000+00003850652

Comments

  1. Anirudh Nagesh 2012-07-24

    Associated HD ticket: appc.me/c/APP-827376 Also, app crashes when the filename has spaces.
  2. Sabil Rahim 2012-08-10

    Pull pending https://github.com/appcelerator/titanium_mobile/pull/2717
  3. Blain Hamon 2012-08-13

    Pull merged.
  4. Olga Romero 2012-08-14

    Verified fix with: Titanium Studio, build: 2.1.1.201207271312 Titanium SDK: 2.2.0.v20120813184911 Devices: iPhone 4s 5.0.1 iPad1 5.1.1 Simulator 5.1 Mac osx 10.8 Mountain Lion Note: z = Ti.UI.iPad.createDocumentViewer({url:filename.nativePath}); I changed Ti.UI.iPad. for Ti.UI.iOS. in the test code to close this issue against iOS devices.

JSON Source