Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix handling of paths on Linux and Mac (issue #54) #65

Merged
merged 3 commits into from
Jul 14, 2015

Conversation

ermshiperete
Copy link
Contributor

Linux and Mac use a forward slash instead of a backslash to separate
directories. This change makes use of the Path.DirectorySeparatorChar
instead of hardcoding backslash. This allows to use the same code on
all platforms.

This change also adjusts the WindowsNameTransform tests so that they
also work cross-platform.

Incorporated in this PR is #52.

Peter Hultqvist and others added 3 commits January 31, 2015 21:26
Fix compilation on unix systems
Linux and Mac use a forward slash instead of a backslash to separate
directories. This change makes use of the Path.DirectorySeparatorChar
instead of hardcoding backslash. This allows to use the same code on
all platforms.

This change also adjusts the WindowsNameTransform tests so that they
also work cross-platform.
@rversaw
Copy link

rversaw commented Mar 2, 2015

What's the status of this PR? Is it likely to be accepted soon?

@odyth
Copy link

odyth commented Jul 9, 2015

Bump. Any update on this getting merged?

jfreilly added a commit that referenced this pull request Jul 14, 2015
Fix handling of paths on Linux and Mac (issue #54)
@jfreilly jfreilly merged commit e012155 into icsharpcode:master Jul 14, 2015
@jfreilly
Copy link
Member

WindowsNameTransform was never intended to be generic a clue being the name including Windows but this works fine. It would be good to rename the class but this itself causes issues.

@ermshiperete ermshiperete deleted the issue54 branch July 27, 2015 07:50
@McNeight McNeight mentioned this pull request Apr 6, 2016
@ermshiperete
Copy link
Contributor Author

My Contribution is licensed under the MIT License.

@McNeight McNeight added the bug label Apr 14, 2016
@McNeight McNeight added xplat Cross Platform, related to running SharpZipLib in non-windows environments checksum gzip zip Related to ZIP file format build and removed checksum gzip labels Apr 15, 2016
@McNeight McNeight modified the milestone: 1.0 May 17, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug build xplat Cross Platform, related to running SharpZipLib in non-windows environments zip Related to ZIP file format
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants