I see, so I should use the "C" locale, as that commonly means "I don't care about the encoding".
Thank you for this information :-) ps/ The 'real' file was not broken, I made this test file with two encodings on purpose for testing. The real file was encoded as iso8859-1, while the default Swedish locale is sv_SE.UTF-8. I understand that grep works in another way now. one could say that it is more picky, but one could also consider this an improvement, that the file warns, that the file is somehow 'non-standard' /ds -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1535458 Title: [15.10 REGRESSION] Randomly wrongly detects files as binary To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/grep/+bug/1535458/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs