Comments (4)
Looking at the par spec, it looks like 'unicode' filenames are supported via a separate packet type: http://parchive.sourceforge.net/docs/specifications/parity-volume-spec/article-spec.html#i__134603784_1221
I'm definitely open to supporting utf8. can you give an example case where gopar
has issues, and I can dig into it?
from gopar.
Creating a new parity file for any filenames containing non-ascii chars results in the error defined in par/string.go
. If you want a few testcases, you could use something like https://onlineutf8tools.com/generate-random-utf8 or pick a few from https://www.cl.cam.ac.uk/~mgk25/ucs/examples/UTF-8-test.txt
Maybe it's good to mention that any non-ASCII files are marked irrepairable if they had been created with par2cmdline
.
from gopar.
Wondering if I can bring up this issue again :)
A bit of spelunking reveal the UrlEncodeChar
function, which I think might be responsible for how par2cmdline
does it:
https://github.com/Parchive/par2cmdline/blob/ea3ba79f359cbe881fd807c5dc8e13b777dbf4c2/src/descriptionpacket.cpp#L119
https://github.com/Parchive/par2cmdline/blob/ea3ba79f359cbe881fd807c5dc8e13b777dbf4c2/src/descriptionpacket_test.cpp#L33
Do you think you have some time to look into it?
from gopar.
I'll try to look at it this weekend! I don't know how much time I have for gopar coding these days, though... :(
from gopar.
Related Issues (8)
- Command line options not accepted HOT 3
- Return values. HOT 11
- panic: unexpected ID string HOT 15
- libgopar HOT 3
- [bug] Creating new parity files: "panic: too many shards" HOT 9
- Subdirectories HOT 10
- Memory usage very high HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gopar.