/[Apache-SVN]
ViewVC logotype

Revision 1503010


Jump to revision: Previous Next
Author: danielsh
Date: Sun Jul 14 18:07:54 2013 UTC (10 years, 9 months ago)
Changed paths: 1
Log Message:
svn_utf_*: Improve error handling.

This is part of a patch I posted recently.  The remaining part --- handling
APR_EINVAL and APR_ENOTIMPL as fatal errors --- may be committed separately
(for ease of backporting).

* subversion/libsvn_subr/utf.c
  (xlate_alloc_handle): Tweak the error handling so that apr_strerror() of the
    error code is included in the error chain, in addition to the custom error
    added here.  The previous code would report error codes such as E70023
    (although not that particular error which is caught and ignored) but mere
    mortals aren't supposed to know what errno error that maps to.  The new
    code would, if the error was not ignored, report:

      svn: E200001: Can't create a character converter from native encoding to 'UTF-8'
      svn: E070023: This function has not been implemented on this platform


Changed paths

Path Details
Directorysubversion/trunk/subversion/libsvn_subr/utf.c modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26