File: mimeencoding_detection_is_not_working.mdwn

package info (click to toggle)
git-annex 10.20250416-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 73,572 kB
  • sloc: haskell: 90,656; javascript: 9,103; sh: 1,469; makefile: 211; perl: 137; ansic: 44
file content (43 lines) | stat: -rw-r--r-- 1,106 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
### Please describe the problem.

Mimeencoding detection doesn't work for files with Cyrillic filenaes.

### What steps will reproduce the problem?

I have

```
git annex config --set annex.largefiles 'mimeencoding=binary and largerthan=0'
```

So I expect all binary files to be annexed.

But I have some jpg file with Cyrillic letters in filename: привет.jpg

```
$ file --mime-encoding привет.jpg
привет.jpg: binary

$ git annex add привет.jpg --verbose
add привет.jpg (non-large file; adding content to git repository) ok
(recording state in git...)

$ mv привет.jpg hello.jpg

$ git annex add hello.jpg --verbose
add hello.jpg
ok
(recording state in git...)
```

### What version of git-annex are you using? On what operating system?

git-annex 10.20220223-g8f6b52b77

Windows 11

### Have you had any luck using git-annex before? (Sometimes we get tired of reading bug reports all day and a lil' positive end note does wonders)

I just started using it and I love it. I like it more than git LFS

[[!meta title="mimeencoding detection is not working on windows"]]