Comments (7)
Also tried different hosts (PowerShell, Git Bash), but no luck.
from git-fame.
After digging a bit further and replaying the git commands you're using: I realized the output of these commands does \r\n for line endings on my machine. I have little knowledge of Python, but I've seen regex engines not matching \r\n correctly with $ - might that be the case here?
from git-fame.
have you tried exporting PYTHONIOENCODING=utf-8
? I'm quite sure your issue is a unicode character in an author's name
from git-fame.
Thanks for the quick response.
set PYTHONIOENCODING=utf-8
This fixes the error, but breaks the progress bar of tqdm in a bad way (every step in a new line). Additionally:
chcp 65001
Somewhat fixes the progress bar, but it does show the unicode replacement char from time to time. I can live with that :).
IMO this should be added to the docs somewhere?
from git-fame.
Btw. you are correct, even filtering by a single file still lists all the authors of the repo, and one had a German Umlaut in their name. The char also is broken by default but fixed by chcp 65001
also.
from git-fame.
ah, sorry, wasn't reading carefully. You're using Windows, which is, yes, broken. chcp 65001
is a semi-fix, perhaps should mention it in the documentation...
from git-fame.
Thanks for the fix!
from git-fame.
Related Issues (20)
- Bug: LOC from multiple repos not averaged HOT 1
- Add ability to exclude commits (.git-blame-ignore-revs) HOT 5
- Table gets misaligned if author names contain fullwidth characters HOT 2
- Long-form --help option does not work with git alias invocation
- snap package not compatible with mounts HOT 11
- Fails to count LOC and files when passing multiple repos HOT 1
- Excluding a folder HOT 4
- Is it support for counting non-empty, non-commented lines of code?
- Get lines of code by file extension for a particular author? HOT 3
- How does it work? Do deleted lines count? HOT 2
- Recursing stats blocked HOT 2
- What is `--loc=surv`? HOT 6
- `--loc=surv` has more loc than `--loc=ins,del` (counts bin files)
- Option for Case-Insensitivity (`CI`) HOT 1
- explain in details the metrics
- JSON Output
- "Dubious ownership in repository" error running Docker container
- [feature] Use shtab to generate shell completion
- wrong loc after author change or repo import HOT 3
- excl appears to have no effect HOT 3
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 git-fame.