Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-18279] String.format strips text after first placeholder with 3.5.0 in Simulator

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2015-05-07T04:45:44.000+0000
Affected Version/sRelease 3.5.1
Fix Version/sRelease 4.0.0
ComponentsiOS
Labels3.5.0, 64-bit, string.format
ReporterFokke Zandbergen
AssigneeIngo Muschenetz
Created2014-12-19T10:47:13.000+0000
Updated2017-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();

Comments

  1. Philippe Wueger 2015-02-06

    Pull Request: https://github.com/appcelerator/titanium_mobile/pull/6624
  2. Ingo Muschenetz 2015-04-27

    Can we please try on 4.0 as well. See TIMOB-18391.
  3. Chee Kiat Ng 2015-05-07

  4. Christopher Beloch 2015-05-18

    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?
  5. Lee Morris 2017-03-31

    Closing ticket as fixed, if there are any problems, please file a new ticket.

JSON Source