1# From: "T. X. G." <leopardie333@yahoo.com>
2# Subject: Bug in regular expression \B using DFA
3# Date: Wed, 16 Jul 2008 05:23:09 -0700 (PDT)
4# To: bug-gawk@gnu.org
5#
6# ~ gawk --version
7# GNU Awk 3.1.6
8# Copyright (C) 1989, 1991-2007 Free Software Foundation.
9#
10# ......
11#
12# You should have received a copy of the GNU General Public License
13# along with this program. If not, see http://www.gnu.org/licenses/.
14#
15# ~ LC_ALL=C gawk 'BEGIN{x="abcd";gsub(/\B/,":",x);print x}'
16# a:b:cd
17#
18# ~ LC_ALL=en_US.UTF-8 gawk 'BEGIN{x="abcd";gsub(/\B/,":",x);print x}'
19# a:b:c:d
20#
21# ~ GAWK_NO_DFA=1 gawk 'BEGIN{x="abcd";gsub(/\B/,":",x);print x}'
22# a:b:c:d
23
24BEGIN { x = "abcd"; gsub(/\B/,":",x); print x }
25