aboutsummaryrefslogtreecommitdiff
path: root/doc/bugs/hPutChar_error_message_with_UTF-8_chars_above_7F_in_filenames/comment_1_bb9cd3e753431b1f5dd8b94a1be4e4a3._comment
blob: 373c1e4e7d7ba2d6c6e49600e9fb02daf856d599 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
[[!comment format=mdwn
 username="joey"
 subject="""comment 1"""
 date="2015-09-09T20:14:01Z"
 content="""
It only fails with --incremental, and the only difference
is that the fsck database is opened and written that way.

Somehow, opening the database causes the encoding of the stderr handle to get
reset from the fileEncoding git-annex normally applies at startup to 
the defaut, which crashes on filenames that don't use the locale's
encoding.

What a strange side effect especially to find in haskell code!
It's some kind of bug in persistent that this happens.
I've filed a bug: <https://github.com/yesodweb/persistent/issues/474>

I put in a workaround; I have it reset the encoding of the file handles
after opening the db.
"""]]