summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2007-05-01 09:19:56 +0000
committerph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2007-05-01 09:19:56 +0000
commita840aa4093cc50cb88bf898be0f28232bca31bec (patch)
tree5fd87764d900c0026ef1ccf63e193edaf5bec024
parentc0ac96e76263abdcf54ba2d8f2529735c644cdfd (diff)
downloadpcre-a840aa4093cc50cb88bf898be0f28232bca31bec.tar.gz
Try "french" locale if "fr_FR" not present. Update NEWS re Win32 libs.
git-svn-id: svn://vcs.exim.org/pcre/code/trunk@157 2f5784b3-3f2a-0410-8824-cb99058d5e15
-rw-r--r--ChangeLog7
-rw-r--r--NEWS12
-rwxr-xr-xRunTest34
3 files changed, 45 insertions, 8 deletions
diff --git a/ChangeLog b/ChangeLog
index e0c29e1..48438a9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,13 @@
ChangeLog for PCRE
------------------
+Version 7.2 01-May-07
+---------------------
+
+ 1. If the fr_FR locale cannot be found for test 3, try the "french" locale,
+ which is apparently normally available under Windows.
+
+
Version 7.1 24-Apr-07
---------------------
diff --git a/NEWS b/NEWS
index dd93daf..0fd5a90 100644
--- a/NEWS
+++ b/NEWS
@@ -2,6 +2,18 @@ News about PCRE releases
------------------------
+Release 7.2 30-Apr-07
+---------------------
+
+Correction to the notes for 7.1: the note about shared libraries for Windows is
+wrong. Previously, three libraries were built, but each could function
+independently. For example, the pcreposix library also included all the
+functions from the basic pcre library. The change is that the three libraries
+are no longer independent. They are like the Unix libraries. To use the
+pcreposix functions, for example, you need to link with both the pcreposix and
+the basic pcre library.
+
+
Release 7.1 24-Apr-07
---------------------
diff --git a/RunTest b/RunTest
index 431a093..550f283 100755
--- a/RunTest
+++ b/RunTest
@@ -157,17 +157,34 @@ if [ $do2 = yes ] ; then
fi
fi
-# Locale-specific tests, provided the "fr_FR" locale is available.
-# TODO: Try the locale name "french" instead - as used on Windows - but
-# this will mean modifying the input and output data.
+# Locale-specific tests, provided that either the "fr_FR" or the "french"
+# locale is available. The former is the Unix-like standard; the latter is
+# for Windows.
if [ $do3 = yes ] ; then
locale -a | grep '^fr_FR$' >/dev/null
if [ $? -eq 0 ] ; then
- echo "Test 3: locale-specific features (using 'fr_FR' locale)"
- $valgrind ./pcretest -q $testdata/testinput3 testtry
+ locale=fr_FR
+ infile=$testdata/testinput3
+ outfile=$testdata/testoutput3
+ else
+ locale -a | grep '^french$' >/dev/null
+ if [ $? -eq 0 ] ; then
+ locale=french
+ sed 's/fr_FR/french/' $testdata/testinput3 >test3input
+ sed 's/fr_FR/french/' $testdata/testoutput3 >test3output
+ infile=test3input
+ outfile=test3output
+ else
+ locale=
+ fi
+ fi
+
+ if [ "$locale" != "" ] ; then
+ echo "Test 3: locale-specific features (using '$locale' locale)"
+ $valgrind ./pcretest -q $infile testtry
if [ $? = 0 ] ; then
- $cf testtry $testdata/testoutput3
+ $cf testtry $outfile
if [ $? != 0 ] ; then
echo " "
echo "Locale test did not run entirely successfully."
@@ -179,8 +196,9 @@ if [ $do3 = yes ] ; then
else exit 1
fi
else
- echo "Cannot test locale-specific features - 'fr_FR' locale not found,"
- echo "or the \"locale\" command is not available to check for it."
+ echo "Cannot test locale-specific features - neither the 'fr_FR' nor the"
+ echo "'french' locale exists, or the \"locale\" command is not available"
+ echo "to check for them."
echo " "
fi
fi