codehenry / xmonad

Automatically exported from code.google.com/p/xmonad
0 stars 0 forks source link

GenerateManpage regex issue #569

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
util/GenerateManpage.hs uses "xK_(\\w+)" which cannot work on some platforms, 
e. g. illumos (opensolaris). It even does not work if Text.Regex.Posix is built 
with bundled regex sources (like on windows).

I suggest to use "xK_([[:alnum:]]+)" instead.

See http://osdyson.org/issues/169 and http://osdyson.org/news/64 ;-)

Original issue reported on code.google.com by pashev.i...@gmail.com on 11 May 2014 at 5:10

GoogleCodeExporter commented 8 years ago
Patch attached (but untested); it changes \w to [_[:alnum:]] rather than 
[[:alnum:]] as the man page for grep suggests that this is what \w is really a 
shortcut for.

Original comment by daniel.w...@gmail.com on 11 May 2014 at 3:48

Attachments:

GoogleCodeExporter commented 8 years ago
Thanks Igor and Daniel. I've pushed the patch and it seems to work.

Original comment by vogt.a...@gmail.com on 11 May 2014 at 5:20