Comments (14)
what version are you on? ./icdiff --version
from icdiff.
the last one : icdiff version 1.6.4
from icdiff.
What files are you diffing?
Are you using python2 or python3?
from icdiff.
I use Python 2.7.6 and I diff .php files that were correctly diffed last friday
from icdiff.
icdiff has new output handling to deal with #31. Reverting to the old handling would break that case, so I need to figure out how to reproduce this case so I make both work. Are these php files you can post? Or could you zip them and send them to [email protected]?
from icdiff.
I tried to manually diff my php files and it works, it only fail if I use svn diff.
And sorry I can't send you those files (DMCA)
from icdiff.
I got svn
set up, checked out an svn repo, appended 测试行abc测试测试行abc测试测试行abc测试测试行abc测试测试行abc测试测试行abc测试测试行abc测试测试行abc测试测试行abc测试
to one of the files, ran svn diff --diff-cmd icdiff
and it worked as expected:
svn co http://plugins.svn.wordpress.org/calculated-fields-form/trunk calculated-fields-form/
cd calculated-fields-form/
cat /path/to/icdiff/tests/input-1.txt >> cp_calculatedfieldsf_admin_int.php
svn diff --diff-cmd icdiff
Could you try this as well? Either it won't work on your machine and then it's something about icdiff
operating in different environments, or it will work in which case it's something about the specific encoded characters in your php file.
from icdiff.
Ok, I got the exact same error, but I also tried to add a single letter or a single space and it throw the error to. Each svn diff will throw this error.
Index: cp_calculatedfieldsf_admin_int.php
Traceback (most recent call last):
File "/bin/icdiff", line 561, in <module>
start()
File "/bin/icdiff", line 476, in start
diff_files(options, a, b, options.encoding)
File "/bin/icdiff", line 556, in diff_files
codec_print(line, options)
File "/bin/icdiff", line 483, in codec_print
sys.stdout.write(s.encode(options.output_encoding))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 44: ordinal not in range(128)
from icdiff.
Thanks!
What os are you on? What kind of terminal? What does echo $LANG
give you?
from icdiff.
ubuntu 14.04, default terminal and fr_FR.UTF-8.
My svn conf is default too, except for diff-cmd : diff-cmd=icdiff
from icdiff.
I just tried setting LANG=fr_FR.UTF-8
on a ubuntu 14.04 box, and didn't get this error. But I'm not confident I'm setting the locale correctly.
Are you saying you're seeing this error with every use of icdiff with svn, even ones that don't have any characters outside of the ascii range?
Could you try using python3?
from icdiff.
Yes I have the error even with ascii character.
Same thing with python 3
(I have created an alias python=python3 into my bashrc, which give me Python 3.4.0)
from icdiff.
Setting python=python3
in your bashrc won't make icdiff use python3. The easiest way to do that would be to change #!/usr/bin/env python
to #!/usr/bin/env python3
at the top of icdiff
.
from icdiff.
Okay, with python3 it works.
from icdiff.
Related Issues (20)
- update icdiff on pypi.org to latest version HOT 2
- ChangeLog does not mention versions newer than 1.9.4 HOT 1
- BUG: Filenames show as mismatch when using exclusions
- Bug report: configuration for `git icdiff` did not work HOT 2
- installing the latest release-2.0.0 requires different command than install instructions HOT 2
- icdiff doesn't work on windows HOT 2
- Add support to specify colors using RGB ? HOT 1
- Add Support for custom patch hunk headers (with some builtins) HOT 1
- It seems have some problem about utf-8 HOT 1
- git icdiff shows old filname for renamed files HOT 2
- Multi-version of the Python HOT 1
- Exit code 1 using process substitutions HOT 4
- Pip install with `--platform` showing ERROR HOT 2
- [issue] linux more shows empty line. ex) icdiff -N fileA fileB | more -60 HOT 1
- Config file HOT 1
- Feature Request: Add an option to output directories before the files (recursively) HOT 1
- icdiff hanging on large files HOT 5
- Not clear how to install icdiff HOT 2
- Publish wheels for icdiff HOT 3
- Questions about Copilot + Open Source Software Hierarchy HOT 2
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 icdiff.