OSSP CVS Repository

ossp - Check-in [5652]
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Patchset]  [Tagging/Branching

Check-in Number: 5652
Date: 2006-Aug-20 17:45:13 (local)
2006-Aug-20 15:45:13 (UTC)
User:rse
Branch:
Comment: Add support for UTF-8 C strings in the API and internally by adding a --with-utf8 build-time options which builds the code with JS_C_STRINGS_ARE_UTF8.
Tickets:
Inspections:
Files:
ossp-pkg/js/ChangeLog      1.30 -> 1.31     7 inserted, 0 deleted
ossp-pkg/js/configure.ac      1.19 -> 1.20     9 inserted, 0 deleted

ossp-pkg/js/ChangeLog 1.30 -> 1.31

--- ChangeLog    2006/08/03 13:25:31     1.30
+++ ChangeLog    2006/08/20 15:45:13     1.31
@@ -11,6 +11,13 @@
 
   This is a list of all changes to OSSP js.
 
+  Changes between 1.6.20060803 and 1.6.20060820 (2006-08-03 to 2006-08-20)
+
+   o Add support for UTF-8 C strings in the API and internally by
+     adding a --with-utf8 build-time options which builds the code
+     with JS_C_STRINGS_ARE_UTF8.
+     [Ralf S. Engelschall <rse@engelschall.com>]
+
   Changes between 1.6.20060731 and 1.6.20060803 (2006-07-31 to 2006-08-03)
 
    o Add optional Dynamic Shared Object (DSO) support (see src/jsdso.[ch]).


ossp-pkg/js/configure.ac 1.19 -> 1.20

--- configure.ac 2006/08/03 13:19:20     1.19
+++ configure.ac 2006/08/20 15:45:13     1.20
@@ -151,6 +151,15 @@
     CLI_LDFLAGS="$CLI_LDFLAGS -export-dynamic"
 fi
 
+dnl #   configure option --with-utf8
+AC_ARG_WITH([utf8],
+        AS_HELP_STRING([--with-utf8], [build with exclusive UTF-8 C strings (uses Unicode UTF-8 encoded C strings only)]),
+        [ac_cv_with_utf8=$withval], [ac_cv_with_utf8=no])
+AC_CACHE_CHECK([whether to build with exclusive UTF-8 C string], [ac_cv_with_utf8], [ac_cv_with_utf8=no])
+if test ".$ac_cv_with_utf8" = ".yes"; then
+    CPPFLAGS="$CPPFLAGS -DJS_C_STRINGS_ARE_UTF8"
+fi
+
 AC_SUBST(CLI_CFLAGS)
 AC_SUBST(CLI_CPPFLAGS)
 AC_SUBST(CLI_LDFLAGS)

CVSTrac 2.0.1