Open hktang opened 1 month ago
Related to #184 , It seems CiteProc::getContext()->getLocale() is null when using bibtex.csl.
CiteProc::getContext()->getLocale()
strtok(CiteProc::getContext()->getLocale()->getLanguage(), '-');
Proposal is to supply the default locale "en" if it does not exist, because strtok does not accept null any more.
strtok(CiteProc::getContext()->getLocale()?->getLanguage() ?? "en", '-');
Please follow the general troubleshooting steps first:
Bug reports:
Related to #184 , It seems
CiteProc::getContext()->getLocale()
is null when using bibtex.csl.Proposal is to supply the default locale "en" if it does not exist, because strtok does not accept null any more.