Uploaded image for project: 'Qbs ("Cubes")'
  1. Qbs ("Cubes")
  2. QBS-1739

integer values in settings are messed up a bit

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • 2.1.0
    • Command Line Frontend
    • None

    Description

      e.g. the int value is printed as string

      $ qbs config int 42
      $ qbs config int
      int: "42"
      

      but is is stored as int in settings:

      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
      <plist version="1.0">
      <integer>42</integer>
      </plist>
      
      

      Importing/exporting such keys effectively loses type information at some point converting the value to string.
      Maybe we should store strings in the first place?

      Attachments

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

        Activity

          People

            kandeler Christian Kandeler
            arch Ivan Komissarov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes