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

[PATCH] #5 OS400/EBCDIC Port: functions that require ebcdic

From: Paul Burba <paulb_at_softlanding.com>
Date: 2006-02-20 22:16:15 CET

Hello All,

(Don't know what the OS400/EBCDIC port is about? See:
http://svn.haxx.se/dev/archive-2006-02/0519.shtml)

Despite IBM's UTF support, some functions still require EBCDIC strings.
IBM's documentation says it clearly, if not comprehensively:

"Nearly all of the run-time routines have been modified to support UTF,
but there are a handful of them that have not...Other operating system
routines have not been modified to support UTF. For example, the IFS
routines such as open() still accept job CCSID. Other operating system
APIs also still accept job CCSID"

The "other APIs" include symlink() and readlink(). This patch converts
the arguments to these three functions to the required encoding when
running on OS400.

Please review if you have a moment, thanks,

Paul B.

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

This is one of several patches to allow Subversion to run
on IBM's OS400 V5R4.

Despite V5R4's UTF support, a handful of functions on OS400 still
require EBCDIC encoded string arguments.

* subversion/libsvn_subr/cmdline.c
   (svn_cmdline_init): Convert string args to open() to EBCDIC.

* subversion/libsvn_subr/io.c
   (SVN_UTF_UTOE_XLATE_HANDLE): New xlate key for UTF-8 (CCSID 1208)
    to EBCDIC (CCSID 0) conversions.
   (svn_io_create_unique_link): Convert string args to symlink() to
    EBCDIC.
   (svn_io_read_link): Convert string args to readlink() to EBCDIC.
]]]

_____________________________________________________________________________
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 Mon Feb 20 22:16:51 2006

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