Skip to content

BOM now missing at beginning of bibliography file -- causes JabRef to not recognize existing library #9496

Open
@andrewhw

Description

@andrewhw

JabRef version

5.8 (latest release)

Operating system

macOS

Details on version and operating system

Darwin daphne.local 22.2.0 Darwin Kernel Version 22.2.0: Fri Nov 11 02:03:51 PST 2022; root:xnu-8792.61.2~4/RELEASE_ARM64_T6000 arm64

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. Begin with an existing bibliography file
  2. Update to the newest JabRef
  3. Save the database (no edits required)
  4. You will likely get a warning that "the library has been modified by another program". This is not actually true. Dismiss changes.
  5. Examine the bibliography file using a text editor. The BOM (the bytes at the beginning of the file forming the Byte Order Mark) are now missing.
  6. Reopening the file using JabRef will now cause a "no content in table" error after opening.

Note that if you reestablish the BOM using an external editor and then open the file again using JabRef, all is well until the bibliography is saved again.

Note that this may be apparent on my machine because I have an ARM processor, so this error may not be reproducible on an older Mac with an Intel processor.

The underlying problem is simply that the BOM is now missing during write. Putting the BOM back in (as it was in older JabRef versions) will fix the problem.

Appendix

...

Log File
Paste an excerpt of your log file here

Metadata

Metadata

Assignees

Type

No type

Projects

Status

High priority

Relationships

None yet

Development

No branches or pull requests

Issue actions