Dankerprouduct / gource

Automatically exported from code.google.com/p/gource
0 stars 0 forks source link

Avatars are not displayed when user name contains UTF8 characters #171

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create an image file with name "Árvíztűrő Tükörfúrógép.jpg" in the 
avatars directory 
2. run gource with --output-custom-log commit.log
3. replace a user name in the custom.log file with "Árvíztűrő 
Tükörfúrógép"
4. run gource with --user-image-dir avatars

What is the expected output? What do you see instead?
The default user image is displayed instead of the custom picture.

What version of the product are you using? On what operating system?
Windows 7 64 bit english version, system locale: hungarian, gource version: 0.38

Please provide any additional information below.
When I rename the image file to asdf.jpg, and replace the user name to asdf, 
the custom picture is displayed correctly.

Original issue reported on code.google.com by kajastan...@gmail.com on 18 Dec 2012 at 1:31

GoogleCodeExporter commented 8 years ago
gource close for me when meets unicode character

gource: failed to load resource 'C:\Users\Dragon\AppData\Local\Temp\GitAvatars/S
teffen M. Colding-J?rgensen.png'
Try 'gource --help' for more information.

Original comment by KindDragon33 on 30 Mar 2013 at 2:57

GoogleCodeExporter commented 8 years ago
I think I've just fixed the issue reported in the first post. It now works in 
the example case and the ones I've tried.

Windows filenames are apparently UTF-16 and need to be converted to UTF-8 so 
the names will match the user names on the log entries.

Have not encountered the issue in the second post. Would need more details to 
look into that. It's failing to load the image, which could also mean that the 
png couldn't be read. Does it work if the image is renamed to not contain any 
unicode characters?

Cheers

Andrew

Original comment by acaudw...@gmail.com on 1 Apr 2013 at 5:35

GoogleCodeExporter commented 8 years ago
I have same issue with unicode characters in path on Window with latest 
Gource-0.40. See screenshot in the attachment.

Original comment by AABiryu...@gmail.com on 31 Oct 2013 at 4:59

Attachments: