Skip to contentSkip to conversation

pcre: add options to enable UTF and UCP support

PATCH Superseded Sven Neumann 2 participants 2 messages Nov 21, 2013

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 pcre: add options to enable UTF and UCP support

Allow to compile PCRE with UTF-8/16/32 support and with support for Unicode properties.

---
 package/pcre/Config.in | 11 +++++++++++
 package/pcre/pcre.mk   |  2 ++
 2 files changed, 13 insertions(+)
package/pcre/Config.in +11 -0
index dc92274..3b93092 100644
@@ -19,4 +19,15 @@ config BR2_PACKAGE_PCRE_32
 	help
 	  This option builds the 32-bits pcre library, i.e 'libpcre32'
 
+config BR2_PACKAGE_PCRE_UTF
+	bool "UTF-8/16/32 support in pcre"
+	help
+	  This option builds the pcre library with UTF-8/16/32 support'
+
+config BR2_PACKAGE_PCRE_UCP
+	bool "Unicode properties support in pcre"
+        select BR2_PACKAGE_PCRE_UTF
+	help
+	  This option builds the pcre library with Unicode properties support (implies UTF-8/16/32 support)'
+
 endif
package/pcre/pcre.mk +2 -0
index bf86a3d..2637354 100644
@@ -19,5 +19,7 @@ endif
 PCRE_CONF_OPT += --enable-pcre8
 PCRE_CONF_OPT += $(if $(BR2_PACKAGE_PCRE_16),--enable-pcre16,--disable-pcre16)
 PCRE_CONF_OPT += $(if $(BR2_PACKAGE_PCRE_32),--enable-pcre32,--disable-pcre32)
+PCRE_CONF_OPT += $(if $(BR2_PACKAGE_PCRE_UTF),--enable-utf,--disable-utf)
+PCRE_CONF_OPT += $(if $(BR2_PACKAGE_PCRE_UCP),--enable-unicode-properties,--disable-unicode-properties)
 
 $(eval $(autotools-package))
Signature · 1 line
1.8.4.2
#1 lore raw

PATCH 1/2 pcre: add options to enable UTF and UCP support

Hi Sven,

Thanks for your patch.

Quoted 1 line · Sven Neumann

Spurious empty line.

Quoted 15 lines

Allow to compile PCRE with UTF-8/16/32 support and with support for Unicode properties.

---
  package/pcre/Config.in | 11 +++++++++++
  package/pcre/pcre.mk   |  2 ++
  2 files changed, 13 insertions(+)
package/pcre/Config.in +0 -0
index dc92274..3b93092 100644
@@ -19,4 +19,15 @@ config BR2_PACKAGE_PCRE_32
  	help

package/pcre/Config.in config BR2_PACKAGE_PCRE_32 · line 29

Quoted 10 lines
package/pcre/Config.in +8 -0
  	  This option builds the 32-bits pcre library, i.e 'libpcre32'
 
+config BR2_PACKAGE_PCRE_UTF
+	bool "UTF-8/16/32 support in pcre"
+	help
+	  This option builds the pcre library with UTF-8/16/32 support'
+
+config BR2_PACKAGE_PCRE_UCP
+	bool "Unicode properties support in pcre"
+        select BR2_PACKAGE_PCRE_UTF

Indent with tab, not spaces.

package/pcre/Config.in config BR2_PACKAGE_PCRE_32 · line 31

Quoted 2 lines
package/pcre/Config.in +2 -0
+	help
+	  This option builds the pcre library with Unicode properties support (implies UTF-8/16/32 support)'

Should be wrapped at 80 columns. [We should really document the
wrapping guidelines...]

With these changes, you can add my

(build-tested on x86_64)

Quoted 15 lines
package/pcre/Config.in +1 -0
+
  endif
package/pcre/pcre.mk +2 -0
index bf86a3d..2637354 100644
@@ -19,5 +19,7 @@ endif
  PCRE_CONF_OPT += --enable-pcre8
  PCRE_CONF_OPT += $(if $(BR2_PACKAGE_PCRE_16),--enable-pcre16,--disable-pcre16)
  PCRE_CONF_OPT += $(if $(BR2_PACKAGE_PCRE_32),--enable-pcre32,--disable-pcre32)
+PCRE_CONF_OPT += $(if $(BR2_PACKAGE_PCRE_UTF),--enable-utf,--disable-utf)
+PCRE_CONF_OPT += $(if $(BR2_PACKAGE_PCRE_UCP),--enable-unicode-properties,--disable-unicode-properties)
 
  $(eval $(autotools-package))
Signature · 6 lines
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F