mirror of
https://github.com/jezhiggins/arabica
synced 2025-01-29 08:36:45 +01:00
Bug fix - codecvt not parameterised properly
This commit is contained in:
parent
703518eba9
commit
b0033ea027
1 changed files with 6 additions and 6 deletions
|
@ -144,11 +144,11 @@ bool convert_bufadaptor<charT, traitsT, externalCharT, externalTraitsT>::flushOu
|
|||
return true;
|
||||
|
||||
bool ok(true);
|
||||
const std::codecvt<charT, char, state_t>& cvt =
|
||||
const std::codecvt<charT, externalCharT, state_t>& cvt =
|
||||
#ifndef ARABICA_VS6_WORKAROUND
|
||||
std::use_facet<std::codecvt<charT, char, std::mbstate_t> >(this->getloc());
|
||||
std::use_facet<std::codecvt<charT, externalCharT, std::mbstate_t> >(this->getloc());
|
||||
#else
|
||||
std::use_facet(this->getloc(), (std::codecvt<charT, char, std::mbstate_t>*)0, true);
|
||||
std::use_facet(this->getloc(), (std::codecvt<charT, externalCharT, std::mbstate_t>*)0, true);
|
||||
#endif
|
||||
|
||||
if(cvt.always_noconv())
|
||||
|
@ -196,11 +196,11 @@ std::streamsize convert_bufadaptor<charT, traitsT, externalCharT, externalTraits
|
|||
streambufT::gptr() - pbCount*sizeof(charT),
|
||||
pbCount*sizeof(charT));
|
||||
|
||||
const std::codecvt<charT, char, state_t>& cvt =
|
||||
const std::codecvt<charT, externalCharT, state_t>& cvt =
|
||||
#ifndef ARABICA_VS6_WORKAROUND
|
||||
std::use_facet<std::codecvt<charT, char, std::mbstate_t> >(this->getloc());
|
||||
std::use_facet<std::codecvt<charT, externalCharT, std::mbstate_t> >(this->getloc());
|
||||
#else
|
||||
std::use_facet(this->getloc(), (std::codecvt<charT, char, std::mbstate_t>*)0, true);
|
||||
std::use_facet(this->getloc(), (std::codecvt<charT, externalCharT, std::mbstate_t>*)0, true);
|
||||
#endif
|
||||
|
||||
externalCharT from[1024];
|
||||
|
|
Loading…
Add table
Reference in a new issue