[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: BUG: svn enters unkillable state, tracked down to UTF conv in locale!=C

From: Denis Vlasenko <vda.linux_at_googlemail.com>
Date: 2006-07-04 13:53:59 CEST

On Tuesday 04 July 2006 13:43, Malcolm Rowe wrote:
> > My native_strerror currently looks like this:
> >
> > static char *native_strerror(apr_status_t statcode, char *buf,
> > apr_size_t bufsize)
> > {
> > if (strerror_r(statcode, buf, bufsize) < 0) {
> > fprintf(stderr, "%s: strerror_r()<0, return stuffbuffer('APR does not understand this error code')\n", __FUNCTION__); //vda
> > return stuffbuffer(buf, bufsize,
> > "APR does not understand this error code");
> > }
> > else {
> > fprintf(stderr, "%s: return '%s'\n", __FUNCTION__, buf); //vda
> > return buf;
> > }
> > }
> >
>
> If your native_strerror() looks like that, you must have STRERROR_R_RC_INT
> defined (in APR's include/arch/unix/apr_private.h), which implies you're
> using the platform-native C library for either AIX or Tru64 (from the
> comments in the above file).
>
> I thought you were using glibc? What OS are you using?

It _is_ glibc 2.4. Looks like glibc people switched to POSIX version
of strerror_r. See here:

http://sources.redhat.com/bugzilla/show_bug.cgi?id=364

But sometimes it returns >=0, yet buffer is not modified.

--
vda
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Jul 4 13:54:39 2006

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.