Can you please put in a "std::cerr << clipboardtext.validate()" in RefWindow::onPasteBibtex and then paste something that causes the exception to be thrown? If that prints 0 then wait_for_text isn't giving us valid utf-8 and it's a gtk bug which needs investigating.
Don't worry, I will get this sorted out, but I want to fully understand what's going on first.
Can you please put in a "std::cerr << clipboardtext. validate( )" in RefWindow: :onPasteBibtex and then paste something that causes the exception to be thrown? If that prints 0 then wait_for_text isn't giving us valid utf-8 and it's a gtk bug which needs investigating.
Don't worry, I will get this sorted out, but I want to fully understand what's going on first.