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

String.format not IEEE printf compatible

    Details

    • Type: Bug
    • Status: Open
    • Priority: Low
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: TiAPI
    • Environment:

      SDK 3.5.1, iOS 8.0+

      Description

      I am expecting:

      console.log ( String.format("Third: %3$s, Second: %2$s, First: %1$s", 'First', 'Second', 'Third') );
      

      to print:

      Third: Third, Second: Second, First: First

      But instead it prints:

      Third: First, Second: Second, First: Third

      The position indication using % is ignored.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              favo Mario
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:

                Backbone Issue Sync

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

                  Git Source Code