Bug #5817 MA doesn't properly escape windows directory seperators
Submitted: 30 Sep 2004 0:38 Modified: 8 Oct 2004 9:24
Reporter: Harrison Fisk Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Administrator Severity:S3 (Non-critical)
Version:1.0.13 OS:Windows (Windows)
Assigned to: Michael G. Zinner CPU Architecture:Any

[30 Sep 2004 0:38] Harrison Fisk
Description:
When you specify a path using the windows directory seperators, MA doesn't escape the neccesary characters it order to make the path work the way one would expect.  This causes some of the options to have weird filenames.

From the manual:

On Windows, if an option value represents a pathname, you should specify the value using `/' rather than `\' as the pathname separator. If you use `\', you must double it as `\\', because `\' is the escape character in MySQL.

So MA should either turn the \ into / or into \\.

How to repeat:
1.  Run MA, and go to Startup Variables.
2.  Setup a log file, such as Slow Query Log.
3.  Specify an option such as C:\mysql\slow_query.log
4.  Notice that MA puts it in the config file as: slow_query_log = C:\mysql\slow_query.log
5.  Restart the service and notice that the file is really created as "C:\mysql low_query.log" which isn' what you intended.

Suggested fix:
Make MA escape the \ when neccesary in path names.
[8 Oct 2004 9:24] Michael G. Zinner
Thank you for your bug report. This issue has been committed to our
source repository of that product and will be incorporated into the
next release.

If necessary, you can access the source repository and build the latest
available version, including the bugfix, yourself. More information 
about accessing the source trees is available at
    http://www.mysql.com/doc/en/Installing_source_tree.html