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

Character encoding for paths and file names #333

Closed
gbehrmann opened this issue Feb 11, 2016 · 2 comments
Closed

Character encoding for paths and file names #333

gbehrmann opened this issue Feb 11, 2016 · 2 comments

Comments

@gbehrmann
Copy link

Hi,

The question was raised within the dCache team how xrootd handles non-ASCII characters in file names and paths. The spec doesn't say anything in particular about UTF8 or ASCII encoding, so I wonder if you have a recommendation regarding what to do with non-ascii characters.

Thanks,

Gerd

@abh3
Copy link
Member

abh3 commented Feb 12, 2016

You are correct that the spec does not explicitly state the encoding. However, it is implied in

http://xrootd.org/doc/dev42/XRdv300.htm#_Toc414892705

with the conclusion that paths are plain old ASCII with certain characters outlawed. By implication, it would include non-ASCII characters. I must admit we have gone ying and yang over this and current implementation does not fully enforce this (which some people like and some do not). Technically, a path should be rejected as described in the above section. We have never gotten any request to support more than this. If we get a significant desire we could add it; but that seems unlikely given how people interpret paths.

@gbehrmann
Copy link
Author

Excellent - thank you.

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

No branches or pull requests

2 participants