[arch-commits] Commit in virtuoso/trunk (PKGBUILD fix-unicode.patch)

Andrea Scarpino andrea at archlinux.org
Thu Sep 22 19:41:49 UTC 2011


    Date: Thursday, September 22, 2011 @ 15:41:49
  Author: andrea
Revision: 138425

Fix the Unicode bug (FS#23864)

Added:
  virtuoso/trunk/fix-unicode.patch
Modified:
  virtuoso/trunk/PKGBUILD

-------------------+
 PKGBUILD          |   13 +++++++++----
 fix-unicode.patch |   21 +++++++++++++++++++++
 2 files changed, 30 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2011-09-22 19:28:44 UTC (rev 138424)
+++ PKGBUILD	2011-09-22 19:41:49 UTC (rev 138425)
@@ -4,20 +4,25 @@
 
 pkgname=virtuoso
 pkgver=6.1.3
-pkgrel=1
+pkgrel=2
 arch=('i686' 'x86_64')
 pkgdesc='A scalable cross-platform server that combines SQL/RDF/XML Data Management with Web Application Server and Web Services Platform functionality'
 url='http://virtuoso.openlinksw.com/wiki/main/Main/'
 license=('GPL')
 depends=('openssl')
 makedepends=('bison' 'flex')
-options=('!libtool' '!makeflags')
-source=("http://downloads.sourceforge.net/${pkgname}/${pkgname}-opensource-${pkgver}.tar.gz")
-md5sums=('7d4b0497411ff1c34d7ca247618cdd17')
+options=('!libtool')
+source=("http://downloads.sourceforge.net/${pkgname}/${pkgname}-opensource-${pkgver}.tar.gz"
+        'fix-unicode.patch')
+md5sums=('7d4b0497411ff1c34d7ca247618cdd17'
+         '550dcc877dcbda707aa7ba53800e5d5b')
 
 build() {
   cd ${srcdir}/${pkgname}-opensource-${pkgver}
 
+  # Already fixed upstream
+  patch -p0 -i "${srcdir}"/fix-unicode.patch
+
   ./configure --prefix=/usr \
     --localstatedir=/var \
     --sysconfdir=/etc \

Added: fix-unicode.patch
===================================================================
--- fix-unicode.patch	                        (rev 0)
+++ fix-unicode.patch	2011-09-22 19:41:49 UTC (rev 138425)
@@ -0,0 +1,21 @@
+Index: libsrc/Wi/xqf.c
+===================================================================
+RCS file: /opldev/source/CVS-MASTER/virtuoso-opensource/libsrc/Wi/xqf.c,v
+retrieving revision 1.21.2.9
+retrieving revision 1.21.2.12
+diff -u -r1.21.2.9 -r1.21.2.12
+--- libsrc/Wi/xqf.c	3 Mar 2011 11:56:45 -0000	1.21.2.9
++++ libsrc/Wi/xqf.c	26 Aug 2011 19:34:56 -0000	1.21.2.12
+@@ -3520,6 +3552,12 @@
+   desc = xqf_str_parser_descs + desc_idx;
+   if (DV_DB_NULL == arg_dtp)
+     return NEW_DB_NULL;
++  /* if we have wide and we want typed string we do utf8, cast do to default charset so we do not do it */
++  if (DV_WIDE == arg_dtp && desc->p_dest_dtp == DV_STRING)
++    {
++      res = box_wide_as_utf8_char (arg, box_length (arg) / sizeof (wchar_t) - 1, DV_STRING);
++      goto res_ready;
++    }
+   if (DV_STRING != arg_dtp)
+     {
+       caddr_t err = NULL;




More information about the arch-commits mailing list