Return-Path: Delivered-To: apmail-incubator-stdcxx-dev-archive@www.apache.org Received: (qmail 83889 invoked from network); 13 Oct 2005 22:53:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 13 Oct 2005 22:53:29 -0000 Received: (qmail 83645 invoked by uid 500); 13 Oct 2005 22:53:29 -0000 Delivered-To: apmail-incubator-stdcxx-dev-archive@incubator.apache.org Received: (qmail 83625 invoked by uid 500); 13 Oct 2005 22:53:29 -0000 Mailing-List: contact stdcxx-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: stdcxx-dev@incubator.apache.org Delivered-To: mailing list stdcxx-dev@incubator.apache.org Received: (qmail 83614 invoked by uid 99); 13 Oct 2005 22:53:28 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Oct 2005 15:53:26 -0700 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 4B9E1516 for ; Fri, 14 Oct 2005 00:53:05 +0200 (CEST) Message-ID: <838063411.1129243985307.JavaMail.jira@ajax.apache.org> Date: Fri, 14 Oct 2005 00:53:05 +0200 (CEST) From: "Martin Sebor (JIRA)" To: stdcxx-dev@incubator.apache.org Subject: [jira] Created: (STDCXX-48) [IRIX] std::wmemcpy() copies only the first character Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [IRIX] std::wmemcpy() copies only the first character ----------------------------------------------------- Key: STDCXX-48 URL: http://issues.apache.org/jira/browse/STDCXX-48 Project: STDCXX Type: Bug Components: 21. Strings Versions: 4.1.2 Environment: IRIX 6.5 Reporter: Martin Sebor Assigned to: Martin Sebor Fix For: 4.1.3 The program below aborts at runtime when compiled with SGI MIPSpro and run on SGI IRIX 6.5. Note that IRIX doesn't define wmemcpy (the macros _RWSTD_MO_WMEMCPY and _RWSTD_MO_WMEMCPY_IN_LIBC are both defined) so the called function must be ours. $ cat t.cpp && nice gmake t -r && LD_LIBRARY_PATH=../lib ./t #include #include int main () { wchar_t dst [4] = { 0, 1, 2, 3 }; std::wmemcpy (dst, L"abc", 3); assert (L'a' == dst [0]); assert (L'b' == dst [1]); assert (L'c' == dst [2]); assert (L'\0' == dst [3]); } CC -c -I/build/sebor/dev/stdlib/include/ansi -D_RWSTDDEBUG -D_REENTRANT -D_RWSTD_USE_CONFIG -I/build/sebor/mipspro-7.41-15d/include -I/build/sebor/dev/stdlib/include -I/build/sebor/dev/stdlib/examples/include -g -ansiW -woff1429,1460,1521,3150,3333 t.cpp CC t.o -o t -LANG:std=off -Wl,-woff,84 -L/build/sebor/mipspro-7.41-15d/lib -lpthread -L/build/sebor/mipspro-7.41-15d/lib -lstd15d -lm rm t.o Assertion failed: L'b' == dst [1], file t.cpp, line 10, pid B86430 Abort (core dumped) -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira