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

Convert cmdline args to UTF-8 all at once at program start?

From: Julian Foad <julianfoad_at_btopenworld.com>
Date: 2006-02-10 00:40:46 CET

Paul Burba has just sent a patch to do native-to-UTF-8 conversion of
command-line arguments right at the start of the program, before argument
processing. That's because our argument processing assumes an ASCII subset for
all the strings it needs to match, but he's converting from EBCDIC.

So, is there any reason we can't do the native-to-UTF-8 conversion once and for
all at program start, on all systems, and remove all the bits and pieces of
conversion that we are presently applying at later stages?

It seems to me that this would make the program neater, because it would just
be a single call, and more robust, because we wouldn't be able, as we are now,
to forget to do the conversion for some arguments or parts thereof.

- Julian

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Feb 10 00:41:16 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.