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

[PATCH] Subversion UTF-8 internals & gettext

From: Erik Huelsmann <e.huelsmann_at_gmx.net>
Date: 2004-04-18 23:50:04 CEST

From the following paragraph in the gettext manual I conclude that we should
be applying the patch below to make sure our internals stay in UTF-8.

"The output character set is, by default, the value of nl_langinfo
(CODESET), which depends on the LC_CTYPE part of the current locale. But
programs which store strings in a locale independent way (e.g. UTF-8) can
request that gettext and related functions return the translations in that
encoding, by use of the bind_textdomain_codeset function."

Comments?

Erik.

Index: subversion/libsvn_subr/cmdline.c
===================================================================
--- subversion/libsvn_subr/cmdline.c (revision 9416)
+++ subversion/libsvn_subr/cmdline.c (working copy)
@@ -167,6 +167,7 @@
   bindtextdomain(PACKAGE_NAME, SVN_LOCALE_DIR);
 #endif
   textdomain(PACKAGE_NAME);
+ bind_textdomain_codeset(PACKAGE_NAME,"UTF-8");
 #endif
  
   return EXIT_SUCCESS;

-- 
NEU : GMX Internet.FreeDSL
Ab sofort DSL-Tarif ohne Grundgebühr: http://www.gmx.net/info
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun Apr 18 23:51:12 2004

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.