nonlatin1 locale: garbage in imported bibtex data
Bug #223763 reported by
Sergey B Kirpichev
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Referencer |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
$ echo $LANG
ru_RU.UTF-8
It's impossible to import BibTeX data in this locale. For example, "Paste BibTeX" operation just throw an exception "Invalid byte sequence in conversion input" and leaves the imported data in an unreadable state...
Attached patch fixes problem for me, but I guess, that there is a better solution. I.e. convert bibtex data from current locale for clipboard...
Changed in referencer: | |
milestone: | none → 1.2.0 |
Changed in referencer: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
I would like to understand why this is failing. According to the GTK documentation, Gtk::Clipboard: :wait_for_ text should return a UTF-8 encoded string, so the explicit conversion in RefWindow: :onPasteBibtex should never fail.
Which exception is getting thrown, ie what follows "The operation underway was" in the exception dialog?