You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@stdcxx.apache.org by Kostas Pagratis <pa...@roguewave.com> on 2005/10/13 19:21:15 UTC

Issue with include/string.cc

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:  aaaaaa.

 

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

Posted by Martin Sebor <se...@roguewave.com>.
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

Posted by Martin Sebor <se...@roguewave.com>.
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:  aaaaaa.
> 
>  
> 
> 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