aboutsummaryrefslogtreecommitdiffstats
path: root/test/mbstr2.awk
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2015-08-25 19:51:54 +0300
committerArnold D. Robbins <arnold@skeeve.com>2015-08-25 19:51:54 +0300
commit278fe876bb18938803ac1c36b028adb8cef6fe84 (patch)
tree289302aa264df2025b48f07fbffca7b70bd01f83 /test/mbstr2.awk
parent96cc85ac9ba06ab6b9edface5e4c34392a07a98d (diff)
downloadegawk-278fe876bb18938803ac1c36b028adb8cef6fe84.tar.gz
egawk-278fe876bb18938803ac1c36b028adb8cef6fe84.tar.bz2
egawk-278fe876bb18938803ac1c36b028adb8cef6fe84.zip
Improve handling of invalid data in UTF locales.
Diffstat (limited to 'test/mbstr2.awk')
-rw-r--r--test/mbstr2.awk1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/mbstr2.awk b/test/mbstr2.awk
new file mode 100644
index 00000000..4f2c8cc6
--- /dev/null
+++ b/test/mbstr2.awk
@@ -0,0 +1 @@
+match($0,/:deathdate=2007....:/) { print substr($0,RSTART+11,RLENGTH-16) }