[TIMOB-10107] iOS: Build error while accessing the multi lingual filename
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-08-13T18:44:47.000+0000 |
Affected Version/s | Release 2.1.0 |
Fix Version/s | Sprint 2012-16 API, Release 3.0.0 |
Components | iOS |
Labels | core, module_filesystem, qe-review, qe-testadded |
Reporter | Nikhil Sharma |
Assignee | Sabil Rahim |
Created | 2012-07-23T17:24:51.000+0000 |
Updated | 2014-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
File | Date | Size |
---|---|---|
build.log | 2012-07-23T17:24:51.000+0000 | 38965 |
網上廣東話輸入法.pdf | 2012-07-23T17:24:51.000+0000 | 3850652 |
Associated HD ticket: appc.me/c/APP-827376 Also, app crashes when the filename has spaces.
Pull pending https://github.com/appcelerator/titanium_mobile/pull/2717
Pull merged.
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.