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

JabRef V5.9 still corrupts my BIB file. #9926

Closed
2 tasks done
MHFrey opened this issue May 19, 2023 · 2 comments · Fixed by #9927
Closed
2 tasks done

JabRef V5.9 still corrupts my BIB file. #9926

MHFrey opened this issue May 19, 2023 · 2 comments · Fixed by #9927
Labels
bib(la)tex bug Confirmed bugs or reports that are very likely to be bugs

Comments

@MHFrey
Copy link

MHFrey commented May 19, 2023

JabRef version

5.9 (latest release)

Operating system

Windows

Details on version and operating system

Windows 10 22H2

Checked with the latest development build

  • I made a backup of my libraries before testing the latest development version.
  • I have tested the latest development version and the problem persists

Steps to reproduce the behaviour

  1. .Install JabRef v5.9 portable
  2. Open my bib file, MHF.bib
  3. Save the file
  4. try to reopen the file
  5. you get an error of no records
  6. edit the file in text editor. It is all binary, not text.

This is the same problem as
#8895. This has been broken since version 5.6.

Appendix

...

Log File
Paste an excerpt of your log file here

compressed version of my original file.

MHF - Copy.zip

![image](https://github.com/JabRef/jabref/assets/107273819/641abe1e-654c-49ef-ac56-932d9d8c5ced)
@Siedlerchr Siedlerchr added bug Confirmed bugs or reports that are very likely to be bugs bib(la)tex labels May 19, 2023
@github-project-automation github-project-automation bot moved this to Normal priority in Prioritization May 19, 2023
@Siedlerchr Siedlerchr moved this from Normal priority to High priority in Prioritization May 19, 2023
@ThiloteE
Copy link
Member

Have you tried converting your library file's encoding to UTF-8?

@Siedlerchr
Copy link
Member

Thanks for the provided bib file and your detailed report.
I could partially reproduce this and noticed the following issues with the latest dev version:
It's still this weird case of UTF16 and UTF16-BE.

  1. Opening the file for the first works
  2. Saving the file in JabRef now modifies the header from % Encoding: UTF-16 to % Encoding: UTF-16BE
  3. Closing JabRef
  4. Reopening JabRef " No records found " Notice the modified header

Further investigation resolved that your file starts with a BOM character.
And I think this is the issue. That JabRef cannot read the encoding line because it starst at the wrong offset.
Currently testing a fix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bib(la)tex bug Confirmed bugs or reports that are very likely to be bugs
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants