From d07658376f6b05c85ca0763fb06a610a9211fb77 Mon Sep 17 00:00:00 2001
From: Eric Wong <e@80x24.org>
Date: Wed, 2 Oct 2019 19:32:42 +0000
Subject: [PATCH] HACKING: document Perl character class gotcha

It took me years to discover this change in Perl 5.6,
maybe other potential hackers are in the same boat.
---
 HACKING | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/HACKING b/HACKING
index f7cb92e9..666d504e 100644
--- a/HACKING
+++ b/HACKING
@@ -50,3 +50,11 @@ requirements.
 
 See design_www.txt and design_notes.txt in the Documentation/
 directory for design decisions made during development.
+
+Perl notes
+----------
+
+* \w, \s, \d character classes all match Unicode characters;
+  so write out class ranges (e.g "[0-9]") if you only intend to
+  match ASCII.  Do not use the "/a" (ASCII) modifier, that requires
+  Perl 5.14 and we're only depending on 5.10.1 at the moment.
-- 
2.51.0