MantisBT - Doomseeker |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0002742 | Doomseeker | [All Projects] Bug | public | 2016-05-27 16:57 | 2016-11-12 09:00 |
|
Reporter | rast1234 | |
Assigned To | Zalewa | |
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | not fixable | |
Platform | x64 | OS | Windowsws 10 | OS Version | 10240 |
Product Version | 1.0 | |
Target Version | | Fixed in Version | | |
|
Summary | 0002742: Strange escape-characrer in server config |
Description | When i save server config and open it in notepad, i see one strange line:
%2Bsv_maxlives=0
Is is supposed to be "+sv_maxlives" but other options are listed without "+" signs in the config. If i remove "%2B" and load config, Doomseeker does not read this value. |
Steps To Reproduce | 1) Open Doomseeker, go to Start server
2) Save config
3) Open the config in notepad
4) Find %2Bsv_maxlives and change its name to sv_maxlives, also change its value, save
5) Open config in Doomseeker
6) Value is not read from config |
Additional Information | Also i noticed that first section name in config is "[%General]" but other sections are normal. |
Tags | No tags attached. |
Relationships | |
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2016-05-27 16:57 | rast1234 | New Issue | |
2016-05-27 20:14 | Zalewa | Note Added: 0014988 | |
2016-05-27 20:14 | Zalewa | Note Edited: 0014988 | bug_revision_view_page.php?bugnote_id=14988#r9042 |
2016-05-27 20:16 | Zalewa | Note Edited: 0014988 | bug_revision_view_page.php?bugnote_id=14988#r9043 |
2016-05-27 20:30 | rast1234 | Note Added: 0014989 | |
2016-05-27 22:25 | Zalewa | Note Added: 0014990 | |
2016-11-12 09:00 | Zalewa | Note Added: 0016177 | |
2016-11-12 09:00 | Zalewa | Status | new => closed |
2016-11-12 09:00 | Zalewa | Assigned To | => Zalewa |
2016-11-12 09:00 | Zalewa | Resolution | open => not fixable |
Notes |
|
(0014988)
|
Zalewa
|
2016-05-27 20:14
(edited on: 2016-05-27 20:16) |
|
This is not a bug but a feature built-in Qt:
'http://doc.qt.io/qt-4.8/qsettings.html#Format-enum [^]'
Quote The INI file format has severe restrictions on the syntax of a key. Qt works around this by using % as an escape character in keys. In addition, if you save a top-level setting (a key with no slashes in it, e.g., "someKey"), it will appear in the INI file's "General" section. To avoid overwriting other keys, if you save something using the a key such as "General/someKey", the key will be located in the "%General" section, not in the "General" section.
This is absolutely correct and ensures that INI files can be loaded no matter what you type in the input fields.
Look up this page for %2B and you will see that it is an encoded +:
'http://www.w3schools.com/tags/ref_urlencode.asp [^]'
|
|
|
|
Yes I understand that it is a "+" sign. But there are other options that are used with "+" in command line, but they are stored in .ini without encoded + at their names, that's why I thought it is not normal. |
|
|
(0014990)
|
Zalewa
|
2016-05-27 22:25
|
|
Still, as long as the program can read the file it creates I see no problem to fix. |
|
|
(0016177)
|
Zalewa
|
2016-11-12 09:00
|
|
Closing as "not fixable" because that's just how the file format works and how the parser built-in Qt framework writes and reads them. |
|