https://bugs.kde.org/show_bug.cgi?id=426856
Bug ID: 426856
Summary: File cncoding is not always stored
Product: KBibTeX
Version: git (master)
Platform: Manjaro
OS: Linux
Status: REPORTED
Severity: normal
Priority: NOR
Component: Loading/saving files
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
SUMMARY
Latest development KBibTeX (kbibtex-git-r3368.52ab3ba1-1) does not store every
encoding set in the file settings.
STEPS TO REPRODUCE
1. Create a file :
----- encoding.bib -------
@comment{x-kbibtex-encoding=us-ascii}
@article{encodingfail2020,
author = {Author},
journal = {Journal},
title = {Encoding with special character $\mu$},
year = {2020}
}
----------------------------
2. Open the file in KBibTeX
- The Encoding is correctly set to US-ASCII in the file settings
- The special escaped LaTeX character \mu is replaced with µ
3. Simulate changing something so that KBibTeX allows saving the file
4. Save the file
OBSERVED RESULT
The encoding line
@comment{x-kbibtex-encoding=us-ascii}
Is removed from the file, causing future openings in KBibTeX to interpret the
file as UTF-8. Future open/save cycles are stable, leading to the following
file:
------------ encoding.bib --------------
@comment{x-kbibtex-encoding=utf-8}
@article{encodingfail2020,
author = {Author},
journal = {Journal},
title = {Encoding with special character $\ensuremath{μ}$},
year = {2020}
}
-----------------------------------------
EXPECTED RESULT
KBibTeX keeps the file in US-ASCII so there are no problems with old BibTeX
uncapable of handling Unicode.
SOFTWARE/OS VERSIONS
Up-to-date Manjaro, KBibTeX built from the kbibtex-git AUR package
--
You are receiving this mail because:
You are watching all bug changes.