Zandronum Chat on our Discord Server Get the latest version: 3.2
Source Code

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0002742Doomseeker[All Projects] Bugpublic2016-05-27 16:572016-11-12 09:00
Reporterrast1234 
Assigned ToZalewa 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionnot fixable 
Platformx64OSWindowsws 10OS Version10240
Product Version1.0 
Target VersionFixed in Version 
Summary0002742: Strange escape-characrer in server config
DescriptionWhen 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 Reproduce1) 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 InformationAlso i noticed that first section name in config is "[%General]" but other sections are normal.
Attached Files

- Relationships

-  Notes
User avatar (0014988)
Zalewa (developer)
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 [^]'

User avatar (0014989)
rast1234 (reporter)
2016-05-27 20:30

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.
User avatar (0014990)
Zalewa (developer)
2016-05-27 22:25

Still, as long as the program can read the file it creates I see no problem to fix.
User avatar (0016177)
Zalewa (developer)
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.

Issue Community Support
This issue is already marked as resolved.
If you feel that is not the case, please reopen it and explain why.
Supporters: No one explicitly supports this issue yet.
Opponents: No one explicitly opposes this issue yet.

- 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 View Revisions
2016-05-27 20:16 Zalewa Note Edited: 0014988 View Revisions
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






Questions or other issues? Contact Us.

Links


Copyright © 2000 - 2025 MantisBT Team
Powered by Mantis Bugtracker