#63 Poco::Timezone::standardName() problem on WIN32

Platform_Specific
closed
nobody
5
2012-09-14
2007-02-08
Anonymous
No

I have a problem with national characters in string returning name of timezone. This function returns in std::string lower bytes from wide characters by simply cutting MSB in this loop:

while (ptr) result += (char) ptr++;

I think it should use system function WideCharToMultiByte for convertion.

The same problem is in:
Poco::Timezone::name()
and
Poco::Timezone::dstName()

Discussion

  • Logged In: YES
    user_id=1148207
    Originator: NO

    I have fixed this in the upcoming 1.2.9 release.