bugBattle for Wesnoth - Bugs: bug #20996, Strange consequences of bad usage...

 
 
Show feedback again

bug #20996: Strange consequences of bad usage of Pango tags

Submitted by:  None
Submitted on:  Wed 31 Jul 2013 06:55:12 AM UTC  
 
Category: BugSeverity: 2 - Minor
Priority: 5 - NormalItem Group: User Interface
Status: FixedPrivacy: Public
Assigned to: Ignacio R. Morelle <shadowmaster>Originator Email: -unavailable-
Open/Closed: ClosedRelease: 1.10.6
Operating System: Linux

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Wed 31 Jul 2013 10:35:14 AM UTC, comment #1:

i have noticed a similar behavior when using ä ü ö (german special characters), when using pango in a gui2 dialog:
it shows me the objectives of the scenario instead of the original message.

Anonymous
Wed 31 Jul 2013 06:55:12 AM UTC, original submission:

This is mostly copied from the topic: http://forums.wesnoth.org/viewtopic.php?f=21&t=39180 , where I was asked to post it here.

I have noticed that if a [message] contains bad pango formatting symbols, like <i> tag finished by </b> tag, it has really weird consequences.

If the code looks like this:
Code: [ Select all ]
[message]
speaker=Krakatulus
message= _ "I was standing in my room, completely alone, when suddenly..."
[/message]
[message]
speaker=Krakatulus
message= _ "I heard a far that <b>wasn't mine</i>."
[/message]

You will first see a message 'I was standing in my room, completely alone, when suddenly...' and then 'I was standing in my room, completely a'.

This seems to be because the message's length was read correctly, but the text failed to load, and so it read what was in the variable holding the text before, and that was the previous message.

Anonymous

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by shadowmaster (Updated the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 06 Jan 2014 12:52:16 AM UTCshadowmasterOpen/ClosedOpen=>Closed
    Fri 20 Dec 2013 12:35:44 AM UTCshadowmasterStatusNone=>Fixed
      Assigned tomordante=>shadowmaster
    Tue 06 Aug 2013 12:26:39 AM UTCshadowmasterAssigned toNone=>mordante
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup