Issue with include/string.cc

2005-10-13 Thread Kostas Pagratis
This issue is on an IRIX 6.5 using mipsPro 7.41

Does anyone have any idea why this is happening?

 

There is a wchar_t w_abcdef = abcdef

 

When replace() on line 336 in include/string.cc is invoked by an = operator 

(test/tools/tooltest/wstrtest.cpp line 256)

str2 = w_abcdef 

 

the resulting string is:  aa.

 

Only the first char is copied over.

 

Kostas Pagratis
Consulting Engineer
Rogue Wave Software

a Quovadx(TM) Division
(w) 303-545-3268
(c) 303-817-1605

 



Re: Issue with include/string.cc

2005-10-13 Thread Martin Sebor

Kostas Pagratis wrote:

This issue is on an IRIX 6.5 using mipsPro 7.41

Does anyone have any idea why this is happening?


Not from this little info. We'd need to see a test case.

Martin


Re: Issue with include/string.cc

2005-10-13 Thread Martin Sebor

Kostas Pagratis wrote:

This issue is on an IRIX 6.5 using mipsPro 7.41

Does anyone have any idea why this is happening?

 


There is a wchar_t w_abcdef = abcdef

 


When replace() on line 336 in include/string.cc is invoked by an =
operator 


(test/tools/tooltest/wstrtest.cpp line 256)

str2 = w_abcdef 

 


the resulting string is:  aa.

 


Only the first char is copied over.


Do you think stdcxx-48 might be related to the problem?
  http://issues.apache.org/jira/browse/STDCXX-48
(I don't see any calls to wmemcpy in the library.)

Martin