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

Deprecate & remove System.Linux.Btrfs.ByteString #5

Open
redneb opened this issue Oct 25, 2018 · 0 comments
Open

Deprecate & remove System.Linux.Btrfs.ByteString #5

redneb opened this issue Oct 25, 2018 · 0 comments

Comments

@redneb
Copy link
Owner

redneb commented Oct 25, 2018

System.Linux.Btrfs.ByteString was created as an alternative to System.Linux.Btrfs, which uses FilePath to represent file paths. The problem with FilePath is that it requires for file paths to be encoded/decoded according to the current locale. This could potentially cause issues when a raw path contains byte sequences that are not valid according to the encoding used.

Fortunately, GHC provides a good solution to this issue via its file system encoding, which ensures that in a decode/encode cycle RawFilePath -> FilePath -> RawFilePath there will be no loss of information.

Therefore, I will drop System.Linux.Btrfs.ByteString from this library, unless I hear a good argument in favor of keeping it.

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

1 participant