[commit: packages/directory] Mistuke-bump-win32-version-bounds, bgamari-patch-1, master: canonicalizePath: Canonicalize case on Windows (bc1d6b1)

git at git.haskell.org git at git.haskell.org
Mon Apr 17 21:34:54 UTC 2017


Repository : ssh://git@git.haskell.org/directory

On branches: Mistuke-bump-win32-version-bounds,bgamari-patch-1,master
Link       : http://ghc.haskell.org/trac/ghc/changeset/bc1d6b17287e93fa7f28228b4ae210eb2a0aa174/directory

>---------------------------------------------------------------

commit bc1d6b17287e93fa7f28228b4ae210eb2a0aa174
Author: Phil Ruffwind <rf at rufflewind.com>
Date:   Tue Nov 29 02:07:45 2016 -0500

    canonicalizePath: Canonicalize case on Windows
    
    Use GetShortPathName and GetLongPathName to find the correct letter case
    of the path.  This only works on existing paths, so it behaves similar
    to realpath on POSIX systems and we can therefore reuse the same trick
    codified in attemptRealpath.


>---------------------------------------------------------------

bc1d6b17287e93fa7f28228b4ae210eb2a0aa174
 System/Directory.hs                   | 35 ++++++++++++---------
 System/Directory/Internal/Prelude.hs  |  6 +++-
 System/Directory/Internal/Windows.hsc | 58 +++++++++++++++++++++++++++++++++++
 changelog.md                          |  2 ++
 tests/CanonicalizePath.hs             | 51 +++++++++++++++++++++++++++++-
 tests/Util.hs                         |  8 +++++
 6 files changed, 143 insertions(+), 17 deletions(-)

Diff suppressed because of size. To see it, use:

    git diff-tree --root --patch-with-stat --no-color --find-copies-harder --ignore-space-at-eol --cc bc1d6b17287e93fa7f28228b4ae210eb2a0aa174


More information about the ghc-commits mailing list