[TIMOB-18279] String.format strips text after first placeholder with 3.5.0 in Simulator
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2015-05-07T04:45:44.000+0000 |
Affected Version/s | Release 3.5.1 |
Fix Version/s | Release 4.0.0 |
Components | iOS |
Labels | 3.5.0, 64-bit, string.format |
Reporter | Fokke Zandbergen |
Assignee | Ingo Muschenetz |
Created | 2014-12-19T10:47:13.000+0000 |
Updated | 2017-03-31T22:19:54.000+0000 |
Description
Only in iOS Simulator String.format strips text after the first placeholder when using the 3.5.0 SDK.
This bug seems to have been introduced by the following commit to make the SDK 64-bit safe:
https://github.com/appcelerator/titanium_mobile/commit/05440170a6a83fdc7d4b8e396b7b74425a31ca1f
Test Case
Run the following code using: * (!) Ti 3.5.0 / iOS simulator 8.1:a b
* (/) Ti 3.5.0 / iOS device 8.1.2: a b c
* (/) Ti 3.5.0 / iOS device 8.1.2: a b c
* (/) Ti 3.4.1 / iOS device 8.1.2: a b c
* (/) Ti 3.4.1 / iOS simulator 8.1: a b c
var w = Ti.UI.createWindow({
backgroundColor: 'white'
});
w.add(Ti.UI.createLabel({
text: String.format('a %s c', 'b')
}));
w.open();
Pull Request: https://github.com/appcelerator/titanium_mobile/pull/6624
Can we please try on 4.0 as well. See TIMOB-18391.
I hope that your don't take 4.0.0 for real as the only release containing this fix. What about a 3.5.x release?
Closing ticket as fixed, if there are any problems, please file a new ticket.