Skip to content

Fixes bug on parsing MXP tags with UTF8 strings#4717

Merged
vadi2 merged 4 commits intoMudlet:developmentfrom
gcms:issue4368
Jan 31, 2021
Merged

Fixes bug on parsing MXP tags with UTF8 strings#4717
vadi2 merged 4 commits intoMudlet:developmentfrom
gcms:issue4368

Conversation

@gcms
Copy link
Copy Markdown
Contributor

@gcms gcms commented Jan 30, 2021

  • TMxpTagParser was converting QChar to a single char
  • TMxpNodeBuilder was converting each individual char to a QChar

Brief overview of PR changes/additions

Motivation for adding to Mudlet

Should fix #4368

Other info (issues closed, discussion etc)

gcms added 3 commits January 29, 2021 13:14
- Extracts TMediaData to a header in order to remove dependencies on MediaPlayer in testing environment
- TMxpTagParser was converting QChar to a single char
- TMxpNodeBuilder was converting each individual char to a QChar
@gcms gcms requested a review from a team as a code owner January 30, 2021 03:13
@gcms gcms requested review from a team January 30, 2021 03:13
@add-deployment-links
Copy link
Copy Markdown

add-deployment-links bot commented Jan 30, 2021

Hey there! Thanks for helping Mudlet improve. 🌟

Test versions

You can directly test the changes here:

No need to install anything - just unzip and run.
Let us know if it works well, and if it doesn't, please give details.

Copy link
Copy Markdown
Member

@vadi2 vadi2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks solid!

image

The normal text is a bit weird, I don't think a Spanish game would be doing Korean but I guess that is unrelated.

@hluaces want to test?

@hluaces
Copy link
Copy Markdown
Contributor

hluaces commented Jan 30, 2021 via email

/***************************************************************************
* Copyright (C) 2008-2013 by Heiko Koehn - KoehnHeiko@googlemail.com *
* Copyright (C) 2014-2017 by Ahmed Charles - acharles@outlook.com *
* Copyright (C) 2014-2019 by Stephen Lyons - slysven@virginmedia.com *
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Given the substantial changes you are making can we also have your name in the relevant places - so every knows who to blamepraise. 😆

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's another PR with these changes. I didn't change the code, I just moved it to a different file to remove dependency from the MXP code to the MediaPlayer and make the tests compile.

@hluaces
Copy link
Copy Markdown
Contributor

hluaces commented Jan 30, 2021

Looks great to me:

imagen

Thank you for your work!

@vadi2 vadi2 merged commit 784cfc7 into Mudlet:development Jan 31, 2021
Chris7 pushed a commit to Chris7/Mudlet that referenced this pull request Jan 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

MXP is not playing nicely with utf8 characteres

4 participants