Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-110669

Q/Date/Time: align unquoting format strings for both from/toString()

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.6
    • Core: Date/Time
    • None
    • 8
    • Foundation PM Staging

    Description

      All Q/Date/Time::fromString/toString() methods should handle single-quotes the same way, so that a format string survives the round-trip of fromString()/toString(). There are currently no known bugs because of this, but the parsing should be uniform anyway. At present the docs aren't even consistent with one another; and the behaviour doesn't seem to match the intended (CLDR-compatible) treatment of two adjacent single quotes in the format string (regardless of whether within other single quotes) as denoting a plain single quote character in the date/time string.

      The CLDR specification gives, as one of the forms of verbatim text:

      Two adjacent single vertical quotes (''), which represent a literal single quote, either inside or outside quoted text.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              Eddy Edward Welbourne
              ahmad.samir Ahmad Samir
              Vladimir Minenko Vladimir Minenko
              Alex Blasche Alex Blasche
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes