From 2a6cd4ddec1e5268df1c5e0f539ecfb3c0117752 Mon Sep 17 00:00:00 2001 From: Jephte Clain Date: Wed, 14 Jun 2017 15:51:56 +0400 Subject: [PATCH] =?UTF-8?q?javaproperties:=20support=20de=20l'=C3=A9chappe?= =?UTF-8?q?ment=20de=20:=20et=20=3D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/ulib/javaproperties | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/ulib/javaproperties b/lib/ulib/javaproperties index 50a654a..330662c 100644 --- a/lib/ulib/javaproperties +++ b/lib/ulib/javaproperties @@ -33,6 +33,8 @@ function read_property() { sub(/^[ \t]*/, "") value = substr(value, 1, length(value) - 1) $0 } + gsub(/\\:/, ":", value) + gsub(/\\=/, "=", value) print value found = 0 exit @@ -64,6 +66,8 @@ function write_property() { function write_value() { # XXX attention, le découpage n"est potentiellement pas fait # correctement si la valeur contient des espaces + gsub(/:/, "\\:", value) + gsub(/=/, "\\=", value) line = name "=" value prefix = "" max_len = 75