Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-18279

String.format strips text after first placeholder with 3.5.0 in Simulator

    Details

    • Story Points:
      3
    • Sprint:
      2015 Sprint 09 SDK

      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();
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ingo Ingo Muschenetz
                Reporter:
                fokkezb Fokke Zandbergen
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-19522
                    Sync status:
                    ERROR
                    Last received:
                    Last sent:

                    Git Integration