<?xml version="1.0" encoding="windows-1252"?>
<node id="997802" title="Re: [Win32] Verify filename (case sensitively)" created="2012-10-08 08:14:05" updated="2012-10-08 08:14:05">
<type id="11">
note</type>
<author id="5348">
Corion</author>
<data>
<field name="doctext">
&lt;p&gt;Just yesterday, I investigated that in relation to generating a warning on Windows when a module is loaded with the "wrong" case, like &lt;c&gt;use Strict;&lt;/c&gt;. I found [http://stackoverflow.com/questions/74451/getting-actual-file-name-with-proper-casing-on-windows|this (C++) post], which seems to be fairly OK. It does not do an extra &lt;c&gt;stat()&lt;/c&gt; call per file, but a call to &lt;c&gt;SHGetFileInfoW&lt;/c&gt;. I don't know if that's horribly slow or not.&lt;/p&gt;
&lt;p&gt;The linked subroutine tries to verify &lt;i&gt;all&lt;/i&gt; parts of the path, while at least Perl would only be interested in the last part(s) of the name.&lt;/p&gt;</field>
<field name="root_node">
997801</field>
<field name="parent_node">
997801</field>
</data>
</node>
