[dokuwiki] Windows shares with non-Roman Server names

  • From: Myron Turner <turnermm02@xxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Wed, 30 Jun 2010 09:08:23 -0500


When creating a Windows share the share is not recognized if the Server
name is non-Roman:
          \\Server_name\path\file

For instance,
    [[\\создана\path\file.txt]]
(My Russian friends, please forgive the nonsense word.)

The regular expression in parser.php is:

    $this->pattern = "\\\\\\\\\w+?(?:\\\\[\w$]+)+";

My first thought was that \w+? did not match non-Roman characters, but
this pattern has no trouble if non-Roman characters appear in the path
or file names, which are matched by \\\\[\w$]+.



Myron

--
Myron Turner
http://mturner.org/
http://mturner.org/fckgLite











--
DokuWiki mailing list - more info at
http://www.dokuwiki.org/mailinglist

Other related posts: