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

Windows compatibility #1

Merged
4 commits merged into from Oct 25, 2010
Merged

Conversation

wchristian
Copy link
Contributor

Heya, thanks again for making this repo.

In this branch you'll find changes to make sure that non-ascii characters actually get translated to UTF when printing the files and more importantly:

Changes that ensure that HTML paths don't contain backslashes on windows. Please also see the commit message there for more details. :)

…hemselves should be written in UTF-8 as well
File::Spec returns paths that are native to the operating system and is not meant to build urls in html. This means that on most unixy systems everything goes well, since it generates / separators. However on Windows it generates backslashes, which do not work in HTML. Similar issues will crop up on older mac systems (uses :) or VMS (i don't even know what exactly this does).

File::Spec is simply the wrong tool to use and should be replaced with something that translates any local path to an uri representation, but i don't want to upset the internals too much for now.

As such i've resorted to swapping backslashes with forward slashes on Windows wherever appropiate.
@lyokato
Copy link
Owner

lyokato commented Oct 25, 2010

Thank you. I've merged them and uploaded it to CPAN as 0.39

@wchristian
Copy link
Contributor Author

Awesome, thanks a ton for being so quick about it! :D

This pull request was closed.
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.

None yet

2 participants