Comment 3 for bug 303839

Revision history for this message
Leonardo Ferreira Fontenelle (leonardof) wrote :

Fixed syntax errors.

The plugin is making Referencer crash. I'm not sure why, but it seems for me that the crash happens when the plugin uses the document.set_field method with a Unicode string instead of an ASCII one. Could anyone please check if that's the reason?

How to reproduce this:

Open a terminal, set LC_ALL and LANG to C or anything except for "pt" or "es", and launch Referencer. Create an empty reference with a DOI from SciELO, e.g. 10.1590/S0102-311X2008001400009, and try to look up for the metadata. Referencer will crash with this outpu:

 title : Benefits of breastfeeding for maternal and child health: an essay on the scientific evidence
 volume : 24
terminate called after throwing an instance of 'std::logic_error'
  what(): basic_string::_S_construct NULL not valid
Aborted

The title was in English, so it was ASCII safe, but not the journal name ("Cadernos de Saúde Pública"). Now, if you pick the "pt" locale, you'll get this output:

terminate called after throwing an instance of 'std::logic_error'
  what(): basic_string::_S_construct NULL not valid
Aborted

In Portuguese the title would be "Benefícios da amamentação para a saúde da mulher e da criança: um ensaio sobre as evidências".