Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The project file does not store variables with formatted text #41541

Open
pigreco opened this issue Feb 13, 2021 · 3 comments
Open

The project file does not store variables with formatted text #41541

pigreco opened this issue Feb 13, 2021 · 3 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Project Upstream Needs changes in an upstream library (like Qt, Proj, GDAL, ...)

Comments

@pigreco
Copy link
Sponsor Contributor

pigreco commented Feb 13, 2021

The idea is taken from here, but if I create project variables and paste the letters, when the project is reopened I CANNOT find the letters in the project variables anymore !!!

how to reproduce it:

  1. add a project variable;
  2. paste some formatted letters, ex: 𝒶, 𝒷, 𝒸, 𝒹, 𝑒, 𝒻, 𝑔, 𝒽
  3. close the saved project;
  4. reopen the project: the variable is empty !!!

image

reopening the project:

image

OSGeo4W64 WIN 10 QGIS 3.16.3 Hannover

@pigreco pigreco added Bug Either a bug report, or a bug fix. Let's hope for the latter! Project labels Feb 13, 2021
@gioman gioman changed the title [Variables] the project file does not store variables with formatted text The project file does not store variables with formatted text Feb 14, 2021
@elpaso
Copy link
Contributor

elpaso commented Feb 14, 2021

I think it's an upstream bug: https://bugreports.qt.io/browse/QTBUG-25291 <--- this is actually closed but if you run the same test case in 5.15.2 it still fails (a bit differently because it fails early, so the situation is even worse than that it was in the original issue).

@elpaso elpaso added the Upstream Needs changes in an upstream library (like Qt, Proj, GDAL, ...) label Feb 14, 2021
@elpaso
Copy link
Contributor

elpaso commented Feb 14, 2021

Side note: storing 4-bytes utf-8 works in XML attributes, it does not in QTextNode and CDATA section.

@kannes
Copy link
Contributor

kannes commented Oct 11, 2021

Any chance one of you could notify upstream about the issue being valid for Qt 5(.15.2 or more)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Project Upstream Needs changes in an upstream library (like Qt, Proj, GDAL, ...)
Projects
None yet
Development

No branches or pull requests

3 participants