There is a problem with the wchar narrow / widen conversion,
specifically wctype.cpp line 812 do_narrow. I can't pinpoint the exact
problem currently due to my limited knowledge on current locale and
facet structures in stdcxx.
Yu (Scott) Zhong
-Original Message-
From: Martin Sebor
: narrow_chars: 82, narrow_out: 188
# TEXT: narrow_chars: 83, narrow_out: 189
# TEXT: narrow_chars: 120, narrow_out: 190
Yu (Scott) Zhong
Here it is in zip link
http://www.geocities.com/acered111/ctype.zip
Yu (Scott) Zhong
-Original Message-
From: Martin Sebor [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 09, 2007 2:34 PM
To: stdcxx-dev@incubator.apache.org
Subject: Re: rewrite of 22.locale.ctype test (1st pass)
Scott
;
+
+// process the locale definition file and character map
+if (0 == rw_localedef (-w, srcfname, cmfname, locname))
+locname = 0;
+
+return locname;
+}
Yu (Scott) Zhong
I attached the modified test, it is ending prematurely see log for more details.
Yu (Scott) Zhong
# INFO (S1) (10 lines):
# TEXT:
# COMPILER: gcc 4.1.2, __VERSION__ = 4.1.2 20061115 (prerelease) (SUSE Linux)
# ENVIRONMENT: i386 running linux-elf 2.6.18 with glibc 2.5
# FILE: 22
into two separate
test? E.g. 22.locale.ctype.is.ch.char and 22.locale.ctype.is.ch.wchar.t.
Yu (Scott) Zhong
Narrow uses widen as input to test on with each different locales. I
assume tolower does the same. I think separating narrow.widen into two
separate test is not the most efficient method.
Yu (Scott) Zhong
-Original Message-
From: Martin Sebor [mailto:[EMAIL PROTECTED]
Sent: Friday
drift didn't explain much about the high value. I am
changing the code on my workspace to check the results.
Yu (Scott) Zhong
-Original Message-
From: Scott Zhong [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 05, 2007 9:27 AM
To: stdcxx-dev@incubator.apache.org
Subject: RE: ctype
{
_RWSTD_ASSERT (__lo = __hi);
_RWSTD_ASSERT (!__lo || __dest);
for (; __lo __hi; ++__lo, ++__dest)
*__dest = narrow (*__lo, __dfault);
return __hi;
}
Yu (Scott) Zhong
I am seeing these characters using gnome on opensuse.
Yu (Scott) Zhong
-Original Message-
From: Mark Brown [mailto:[EMAIL PROTECTED]
Sent: Sat 3/31/2007 3:57 PM
To: stdcxx-dev@incubator.apache.org
Subject: strange characters in test output on gnome-terminal
Hi!
After I switched
\x13\x14\x15\x16\x17\x18\x19\x1a\x1b\x
1c\x1d\x1e\x1f !\#$%'()*+,-./0123456789:;=[EMAIL PROTECTED], got (invalid
address 0x00ff) in locale ()
# CLAUSE: lib.category.ctype
# LINE: 1176
Yu (Scott) Zhong
)
at /home/scottz/stdcxx/tests/src/driver.cpp:1136
#16 0x0804a816 in main (argc=Cannot access memory at address 0x0
) at /home/scottz/stdcxx/tests/localization/22.locale.ctype.cpp:1703
Yu (Scott) Zhong
Option 3 sounds better, if option 3 is allowed. Otherwise option 2.
Yu (Scott) Zhong
-Original Message-
From: Andrew Black [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 21, 2007 9:57 AM
To: stdcxx-dev@incubator.apache.org
Subject: Re: [VOTE] Re: regression test suite naming
-_get_array_pt();
2315c2315
const valarray_RWSTD_SIZE_T *__sec = __ia-get_array_pt();
---
const valarray_RWSTD_SIZE_T *__sec = __ia-_get_array_pt();
Yu (Scott) Zhong
-Original Message-
From: Martin Sebor [mailto:[EMAIL PROTECTED]
Sent: Sun 3/18/2007 1:54 PM
To: stdcxx-dev
: tm does not name
a type
/home/scottz/stdcxx/tests/strings/21.cwchar.cpp:577: error: test_tm in
namespace std::Nested does not name a type
Yu (Scott) Zhong
: expected `;' before ) token
Yu (Scott) Zhong
gcc version 4.1.1
Yu (Scott) Zhong
-Original Message-
From: Scott Zhong [mailto:[EMAIL PROTECTED]
Sent: Sun 3/11/2007 11:50 AM
To: stdcxx-dev@incubator.apache.org
Subject: openSUSE 10.2 -- gcc 4.1.1/2 -- valarray
on openSUSE 10.2 compiling stdcxx/tests/intro/17.names.cpp with both gcc
the main is changed to
int main()
{
slice aSlice;
slice_arrayint mySliceArray(aSlice);
slice_arrayint my2ndSliceArray = mySliceArray;
slice bSlice = mySliceArray.get_slice();
return 0;
}
still compiles fine.
Yu (Scott) Zhong
-Original Message
() const'
BAD_ALLOC_WHAT.o:BAD_ALLOC_WHAT.cpp:(.text+0xa4f): undefined reference to
`std::bad_alloc::what() const'
collect2: ld returned 1 exit status
Yu (Scott) Zhong
From: Mark Brown [mailto:[EMAIL PROTECTED]
Sent: Sat 3/10/2007 4:39 PM
To: stdcxx-dev
::bad_alloc const)'
BAD_ALLOC_ASSIGNMENT.o:BAD_ALLOC_ASSIGNMENT.cpp:(.text$_ZNSt9bad_allocassignERK
S_[std::bad_alloc::assign(std::bad_alloc const)]+0x1f): undefined reference to
`std::bad_alloc::operator=(std::bad_alloc const)'
collect2: ld returned 1 exit status
Yu (Scott) Zhong
\include\GLOBAL_BAD_EXCEPTION.exe: *** fatal error -
called with threadlist_ix
-1
Yu (Scott) Zhong
: false_type { };
template class T
struct is_pointerT*: true_type{ };
template class T
struct is_reference: false_type { };
template class T
struct is_referenceT: true_type{ };
Yu (Scott) Zhong
Consulting Engineer
Rogue Wave Software, a Quovadxtm division
[EMAIL PROTECTED]
ph: 303 545 3182
.
Yu (Scott) Zhong
I wasn't aware I thought it was a bug, thank you martin.
-Original Message-
From: Martin Sebor [mailto:[EMAIL PROTECTED]
Sent: Monday, October 02, 2006 2:02 PM
To: stdcxx-dev@incubator.apache.org
Subject: Re: unable to use boolalpha stream manipulator in sourcepro ed9
Scott Zhong wrote
std::string xmant = x.before_ + x.after_;
if (y.before_.length() x.before_.length()) {
xmant.insert(0, y.before_.length() - x.before_.length(), '0' );
}
gcc -D_RWCONFIG=12d -I. -I./../../../../include -I.. -fPIC -O2 -pthread
-ftemplate-depth-32 -D_RWCONFIG=12d
) {
return *this _RWSTD_STATIC_CAST (unsigned long, __val);
}
And
Ostream, line 151:
basic_ostream operator (unsigned int __val) {
return *this _RWSTD_STATIC_CAST (unsigned long, __val);
}
Thank you,
Yu (Scott) Zhong
Consulting Engineer
Rogue Wave Software
26 matches
Mail list logo