-
Notifications
You must be signed in to change notification settings - Fork 336
Use of uninitialized value $less_charset in pattern match #400
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This is almost certainly an issue with d-s-f. What version do you have? We fixed a less bug not to long ago I wonder if you have an old version. |
I am using the newest commit on master e5bddde |
Can you give me the output of |
It seems like the output is identical to the output of when I start d-s-f without parameters:
|
Are you sure you have the latest from Why don't you try the |
For the record you should see something like this:
|
Yep, I'm pretty sure I was on the |
Well, I'm not a Perl Pro, but the source looks like you described. However, modifying the source around Line 57 like this
yields the following:
So I guess the debug flag is never set. I can also reproduce that on other machines. |
Well maybe I can dig some more then... what OS are you using, and what version of Perl? |
Apart from the system mentioned at the very top, Manjaro Linux with perl v5.32.1. |
I figured out that
Alternatively:
Looks like the mac is weirdly set up and otherwise everything is okay. |
I'm not a shell expert, but I think |
As far as I've tracked this, the issue was introduced in 75587c6. The function get_less_charset now returns a tuple. But it does I've mentioned I'm fixing this in #398. |
Sorry about the confusion I've made around the fix for this. I didn't notice it was fixed in the |
Closing this because it should be fixed on the latest version. If you still get the error let us know. |
I am trying to use diff-so-fancy on a system with macOS (Darwin 19.6.0), perl v5.18.4 and git version 2.24.3 (Apple Git-128).
When using it normally (like
diff -u f1 f2 | diff-so-fancy
), everything seems to be in order. But when setting up git like specified in the README, I get the following:This happens in the function
should_print_unicode
. I was trying to work around the issue by returning 0 or 1 in the first line of te function, which only leads to the following message:Is this a problem with the installed dependencies or rather with diff-so-fancy?
The text was updated successfully, but these errors were encountered: