Hi All,
I have a problem with wstring, maybe someone had similar problem.
When I trying to create wstring object:
Quote:
std::wstring testString(L"Simple string");
|
created object testString have invalid length, i.e. when I get length after creating object:
it returns some dummy number (thousands, millions). I programming under Ubuntu, and my gcc version is 4.3.3.
I'm new in Linux programming. I know that it is need to post code to the forum when asking the question, but the problem is so simple, that it is nothing to post, just main function, and object of wstring type.
It is interesting that with std::string object everything is ok. Even if I create wstring object with empty string
Quote:
std::wstring emptyString(L"")
|
object also have invalid length, emptyString.clear() - also doesn't help.
I will be very thankful for any help in this issue.
P.S. sorry for grammatical and syntax errors, English is not my native language.