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

lupdate warns about Latin1 encoding when using QT_TRANSLATE_NOOP with plurals

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.2.1, 5.3.2
    • Tools: Linguist
    • Windows 7 64bit

    Description

      When using QT_TRANSLATE_NOOP, lupdate issues the following message for every instance of QT_TRANSLATE_NOOP:

      C:/Users/StBohne.SENTEC.000/workspace/QtBug1/QtBug2/main.cpp:6: Unsupported encoding Latin1
      
      Updating 'de_DE.ts'...
          Found 1 source text(s) (0 new and 1 already existing)
      

      The generated ts file seems to be fine, though. I don't understand where the Latin1 encoding comes from, because everything should be treated as UTF-8 in Qt5.

      Also this only happens, if I work around the problem, that there is no QT_TRANSLATE_NOOP (or QT_TR_NOOP) variant that supports plural forms.

      No such message is generated by lupdate version 4.7.0.

      Attachments

        1. main.cpp
          0.2 kB
        2. QtBug2.pro
          0.3 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            kkohne Kai Köhne
            stbohne Stefan Bohne
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes