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

integer values in settings are messed up a bit

XMLWordPrintable

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

      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?

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

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

              Created:
              Updated:

                There are no open Gerrit changes