Commits

Shlomi Fish committed ce58707

Proper fix this time - gotta test.

  • Participants
  • Parent commits 8d78d91

Comments (0)

Files changed (1)

File config-inifiles/lib/Config/IniFiles.pm

 
         # Convert the filehandle to a "text" filehandle suitable for use
         # on Windows (and other platforms).
-        binmode $fh;
+        # 
+        # This may break compatibility for ultra-old perls (ones before 5.6.0)
+        # so I say - Good Riddance!
+        if ($^O =~ m/\AMSWin/)
+        {
+            binmode $fh, ':crlf';
+        }
     };
 
     if ($@)