https://bugs.kde.org/show_bug.cgi?id=523283
Bug ID: 523283
Summary: KBibTeX is regressing to UTF-8 encoding instead of
LaTeX encoding even for brand-new files with no
special characters
Classification: Applications
Product: KBibTeX
Version First 0.10
Reported In:
Platform: Fedora RPMs
OS: Linux
Status: REPORTED
Severity: major
Priority: NOR
Component: Loading/saving files
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
Created attachment 194456
--> https://bugs.kde.org/attachment.cgi?id=194456&action=edit
Short video showing the problemtic behavior where a simple .bib file gets saved
with UTF-8 encoding against the user's wishes
DESCRIPTION
After an update, KBibTeX now forces all saved .bib files into UTF-8 encoding,
even when the user tries to save with LaTeX encoding. This is not due to
special characters, so this is not the same as Bug #426856. It is happening
even with fresh, nearly empty .bib files with no special characters in them.
I am attaching a short video recording showing this problematic behavior.
This degredation to UTF-8 is making it impossible to use KBibTeX, because my
main .bib file contains many LaTeX-encoded characters that are now being saved
in UTF-8, which is breaking LaTeX.
STEPS TO REPRODUCE
1. In a pure-text editor like Gedit, create a new file test.bib containing only
a single entry:
@article{New1,
author = {Last, First},
title = {{Test Title}}
}
2. Open the file temp.bib in KBibTeX.
3. Notice that the encoding is LaTeX. Make a trivial change to the file so that
it can be saved. Then close KBibTex.
4. Then open the temp.bib file again in Gedit. The file now has the new first
line @comment{x-kbibtex-encoding=utf-8}.
5. Open the temp.bib file again in KBibTeX. It now shows UTF-8 as the encoding.
If the file is saved again, without manually switching it back to LaTeX, it
will be saved in UTF-8. This messes up any .bib file with LaTeX characters like
{\"o} in them.
OBSERVED RESULT
Saved files all default to UTF-8 encoding for no reason.
EXPECTED RESULT
KBibTeX should maintain files in LaTeX encoding if they do not contain any bad
characters.
SOFTWARE/OS VERSIONS
KBibTeX: 0.10.50
KDE Frameworks: 6.28.0
Qt: Using 6.11.1 and built against 6.11.1
Fedora Linux 44 (Workstation Edition) (Wayland)
Build ABI: x86_64-little_endian-lp64
Kernel: linux 7.1.3-201.fc44.x86_64
ADDITIONAL INFORMATION
Please see the attached short video recording.
--
You are receiving this mail because:
You are watching all bug changes.