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

[PATCH] Follow-up to r18536 OS400/EBCDIC Port: Convert string args to EBCDIC for functions that require it.

From: Paul Burba <paulb_at_softlanding.com>
Date: 2006-03-24 21:12:11 CET

Hi All,

Grrr...I just found this today while working on the
svn_utf_cstring_*_utf8_ex() patch.

Revision 18536 was an OS400/EBCDIC related patch that handled a handful of
functions on OS400 that still require EBCDIC encoded string arguments on
V5R4. Among these were readlink() and symlink(). Well somehow, with the
plethora of working copies I have for various flavors of OS400 Subversion
ports, I managed to not commit all of the required the required
conversions for readlink() and symlink(). Throw rotten fruit at me if you
wish...

Paul B.

[[[
OS400/EBCDIC Port: Convert string args to EBCDIC for functions that
require it.

This is a follow-up to r18536, one of several patches to allow
Subversion to run on IBM's OS400 V5R4. Rev 18536 mistakenly didn't
include all the changes necessary to handle EBCDIC arguments to
symlink() and readlink(). This patch fixes that.

* subversion/libsvn_subr/io.c
   (SVN_UTF_ETOU_XLATE_HANDLE): New xlate key for EBCDIC (CCSID 0) to
    UTF-8 (CCSID 1208) string conversions.
   (svn_io_create_unique_link): Convert *both* string args to
    symlink() to EBCDIC.
   (svn_io_read_link): Convert the buffer filled by readlink() from
    EBCDIC to UTF-8.
]]]

_____________________________________________________________________________
Scanned for SoftLanding Systems, Inc. and SoftLanding Europe Plc by IBM Email Security Management Services powered by MessageLabs.
_____________________________________________________________________________

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Received on Fri Mar 24 21:12:48 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.