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

Make print and show consistent for WindowsPaths #88

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rofinn
Copy link
Owner

@rofinn rofinn commented Apr 27, 2020

Closes #87

@davidanthoff Would you mind reviewing this? I don't do a lot of work on Windows, so I'm not very confident that this won't break things.

NOTE: This seems to break compatibility with base Julia.

@codecov
Copy link

codecov bot commented Apr 27, 2020

Codecov Report

Merging #88 into master will increase coverage by 0.78%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #88      +/-   ##
==========================================
+ Coverage   87.96%   88.75%   +0.78%     
==========================================
  Files          12       12              
  Lines        1039     1005      -34     
==========================================
- Hits          914      892      -22     
+ Misses        125      113      -12     
Impacted Files Coverage Δ
src/windows.jl 52.94% <0.00%> (-30.40%) ⬇️
src/libc.jl 48.38% <0.00%> (-9.95%) ⬇️
src/path.jl 85.31% <0.00%> (+1.47%) ⬆️
src/test.jl 95.43% <0.00%> (+2.11%) ⬆️
src/posix.jl 89.47% <0.00%> (+4.47%) ⬆️
src/system.jl 91.73% <0.00%> (+5.68%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b01aa13...d03fb9d. Read the comment docs.

@davidanthoff
Copy link
Contributor

Hm, do we really want this? I mean, the standard way of representing windows paths is with backslash...

@rofinn
Copy link
Owner Author

rofinn commented Apr 28, 2020

I’m not sure, but it does seem weird that show already does this.

@davidanthoff
Copy link
Contributor

So my gut feeling is that we would want to always use backslash for Windows path everywhere, given that that is the "normal" way on Windows. But I also don't know whether that might have negative consequences somewhere else ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Convert Windows path to Posix path
2 participants