diff options
author | sunny256 <sunny256@web> | 2015-08-23 20:57:06 +0000 |
---|---|---|
committer | admin <admin@branchable.com> | 2015-08-23 20:57:06 +0000 |
commit | a241510a0f106107e79190f4c0f2d7214be4e834 (patch) | |
tree | 562825922fe78dd2873ee810f7e17ba5abf19030 | |
parent | a61c7ea04c9ba27d0c3cba98dfa20851d6945e6e (diff) |
Add bug report about hPutChar error message when using git annex fsck --incremental
-rw-r--r-- | doc/bugs/hPutChar_error_message_with_UTF-8_chars_above_7F_in_filenames.mdwn | 78 |
1 files changed, 78 insertions, 0 deletions
diff --git a/doc/bugs/hPutChar_error_message_with_UTF-8_chars_above_7F_in_filenames.mdwn b/doc/bugs/hPutChar_error_message_with_UTF-8_chars_above_7F_in_filenames.mdwn new file mode 100644 index 000000000..f4beac9fb --- /dev/null +++ b/doc/bugs/hPutChar_error_message_with_UTF-8_chars_above_7F_in_filenames.mdwn @@ -0,0 +1,78 @@ +### Please describe the problem. + +When using `--incremental` together with `git annex fsck`, the error +message "hPutChar: invalid argument (invalid character)" appears in the +"Only X of Y trustworthy copies exist" message when the filename +contains an UTF-8 character above U+007F. The only locale in which this +doesn't happen is "C.UTF-8". + +### What steps will reproduce the problem? + +- Create and add a file with an UTF-8 character in the file name above U+007F to git-annex +- Set `numcopies` high enough so `git annex fsck` will produce a warning about missing copies +- Execute `git annex fsck --incremental` + +I've created two test scripts on +<https://gist.github.com/sunny256/ebf4d055f5500b257ed8> that demonstrate +this error: + +- `git clone https://gist.github.com/ebf4d055f5500b257ed8.git` +- `cd ebf4d055f5500b257ed8` +- `./runme` + +You can specify a locale to `runme` as `$1` to experiment with different +locales. + +There's also a `test-all-locales` script that executes `./runme` with +all defined locales on the computer. Both scripts return 1 if the error +message appears, if it's gone, 0 is returned. + +### What version of git-annex are you using? On what operating system? + +Newest git-annex amd64 (5.20150812) from `downloads.kitenet.net`. + +### Please provide any additional information below. + +The `runme` script contains more information about this issue. + +[[!format sh """ +# If you can, paste a complete transcript of the problem occurring here. +# If the problem is with the git-annex assistant, paste in .git/annex/daemon.log + +Here are two excerpts of the test output using the "C" and +"C.UTF-8" locale: + +$ ./runme C +[snip] +================== git annex --incremental fsck ================== +fsck U00D8_Ø.txt (checksum...) + + Only 1 of 2 trustworthy copies exist of U00D8_ +git-annex: <stderr>: hPutChar: invalid argument (invalid character) +failed +fsck ascii_only.txt (checksum...) + + Only 1 of 2 trustworthy copies exist of ascii_only.txt + Back it up with git-annex copy. +failed +(recording state in git...) +git-annex: fsck: 2 failed + +$ ./runme C.UTF-8 +[snip] +================== git annex --incremental fsck ================== +fsck U00D8_Ø.txt (checksum...) + + Only 1 of 2 trustworthy copies exist of U00D8_Ø.txt + Back it up with git-annex copy. +failed +fsck ascii_only.txt (checksum...) + + Only 1 of 2 trustworthy copies exist of ascii_only.txt + Back it up with git-annex copy. +failed +(recording state in git...) +git-annex: fsck: 2 failed + +# End of transcript or log. +"""]] |