bugGNUstep - Bugs: bug #37283, Invalid result of parsing...

Group
 
 

bug #37283: Invalid result of parsing XML-based plist

Submitter:  Vitaliy <vmyrik>
Submitted:  Thu 06 Sep 2012 09:58:33 AM UTC
   
 
Category:  Base/Foundation Severity:  3 - Normal
Item Group:  Bug Status:  Fixed
Privacy:  Public Assigned to:  None
Open/Closed:  In Test
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 06 Sep 2012 02:39:12 PM UTC, comment #2: 

I have attached plist that I try to parse. After pulling from master (rev 35533) I get the following:

{"

lookAheadForRow" = 3; lookAheadForSymbol = 3; maxNormalizedDistance = "0.01"; maxRowEndDarkness = 1; minRowBeginDarkness = 1; spaceHeight = 1; spaceWidth = 4; symbols = {" " = "space.gif"; "(" = "parenthesis_open_1.gif"; ")" = "parenthesis_close_1.gif"; "+" = "plus.gif"; "," = "comma.gif"; "-" = "hyphen.gif"; 0 = "0.gif"; 1 = "1.gif"; 2 = "2.gif"; 3 = "3.gif"; 4 = "4.gif"; 5 = "5.gif"; 6 = "6.gif"; 7 = "7.gif"; 8 = "8.gif"; 9 = "9.gif"; ";" = "semicolon.gif"; }; threshold = "0.5"; }


There are some white-spaces before lookAheadForRow that really should not be there.
Btw, thx for quick fix.

(file #26489)

Vitaliy <vmyrik>
Thu 06 Sep 2012 12:59:32 PM UTC, comment #1: 

Thanks ... I checked the DTD and it is supposed to keep whitespace in a key ... so I've modified the xml plist parsing so that it shoudl now do that.

Richard Frith-Macdonald <CaS>
Group Member
Thu 06 Sep 2012 09:58:33 AM UTC, original submission:  

I have an XML-based plist and inside it there is a dictionary that contains a white-space as a key, among the other things. When I try to load this plist using [[NSDictionary alloc] initWithContentsOfFile:] I get an empty string for this key instead of white space.
Data looks like:
<dict>
...
<key> </key>
<string>space.tiff<string>
...
</dict>
P.S. I'm non-native speaker, so please accept my apologies for any errors that may found here.

Vitaliy <vmyrik>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #26489:  Properties.plist added by vmyrik (1KiB - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by CaS (Posted a comment)
  • -email is unavailable- added by vmyrik (Submitted the item)
  • -email is unavailable- added by vmyrik
  • -email is unavailable- added by vmyrik
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2012-09-06 vmyrik Attached File- Added Properties.plist, #26489
    2012-09-06 CaS StatusNone Fixed
        Open/ClosedOpen In Test
    2012-09-06 vmyrik Carbon-Copy- Added -email is unavailable-
        Carbon-Copy- Added -email is unavailable-

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code