Bug 403893 - Wrong escaping written to file
Summary: Wrong escaping written to file
Status: RESOLVED WORKSFORME
Alias: None
Product: KBibTeX
Classification: Applications
Component: Loading/saving files (show other bugs)
Version: git (master)
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: Thomas Fischer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-02-03 12:17 UTC by Marcus
Modified: 2019-03-17 15:11 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Example bibfile to reproduce bug (360 bytes, text/x-bibtex)
2019-02-03 12:17 UTC, Marcus
Details
Fixing format string for dotless-i and dotless-j in EncoderLaTeX::encode (890 bytes, patch)
2019-03-16 22:50 UTC, Thomas Fischer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marcus 2019-02-03 12:17:47 UTC
Created attachment 117806 [details]
Example bibfile to reproduce bug

SUMMARY

When a bibtex entry with a diaeresis is read and then written again an invalid macro is inserted leading to compilation failure by pdflatex.

STEPS TO REPRODUCE
1. Open attached bibtex file in kbibtex
2. Save the file with default options

OBSERVED RESULT

The resulting file has among others the following text in the author file:

 Lo\"{\i}c

EXPECTED RESULT

The output should read 

Lo\"ic

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Gentoo Linux
KDE Plasma Version: 5.14.4
KDE Frameworks Version: 5.53.0
Qt Version: 5.11.3
Comment 1 Thomas Fischer 2019-03-16 22:50:13 UTC
Created attachment 118852 [details]
Fixing format string for dotless-i and dotless-j in EncoderLaTeX::encode

I think I have narrowed down this bug. Please test this patch and confirm if it fixes your problem.
Comment 2 Marcus 2019-03-17 15:11:22 UTC
I'm very sorry. For having wasted your time.

The problem when compiling the file with the bib file created by kbibtex was unrelated to the \i inserted. I used a macro called '\i' in some block and somehow the scoping broke. So the \i was not available in the bibliography even though it should have been.

So it now works with and without your patch and I think the original version is more correct.

Again, my apologies ...