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

lupdate does not handle \ end of line terminators in C++ source code

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • 4.7.1
    • 4.5.2
    • Tools: Linguist
    • None
    • b3f88e8629390a49d12fd7684e711280b7b2c7c2

    Description

      To reproduce this, create some C++ source file that contains a long tr( string that spans several lines and uses the \ to denote the line end.

      e.g.
      return tr( "some text\
      more text");

      You will receive something similar to the following:-

      C:\32241\HelloWorldQtUic>lupdate HelloWorldQtUic.pro
      Unknown feature http://qtsoftware.com/xml/features/report-whitespace-only-CharDa
      ta
      C:/32241/HelloWorldQtUic/main.cpp:10: Unterminated C++ string
      C:/32241/HelloWorldQtUic/main.cpp:11: Unterminated C++ string
      C:/32241/HelloWorldQtUic/main.cpp:10: Unbalanced parentheses in C++ code (or abu
      se of the C++ preprocessor)

      Updating 'HelloWorldQtUic_en.ts'...

      Found 3 source text(s) (1 new and 2 already existing)
      Similar-text heuristic provided 1 translation(s)

      This was reproduced on 4.5.1 and 4.5.2 using Windows with VS2005

      Attachments

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

        Activity

          People

            buddenha Oswald Buddenhagen
            cattell Matthew Cattell (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes