avoid UnicodeDecodeError when reading 'configure' script and checking for 'Generated by GNU Autoconf' in ConfigureMake#1817
Conversation
… for 'Generated by GNU Autoconf' in ConfigureMake
|
If that makes you happy we can merge that, but I would add some comments explaining why. Someone will read it at some point and think "why is this a bytes literal"? Besides that, that's IMO an environment problem. I have had that before in completely different scenarios that had nothing to do with EB. If you environment is not sanitized to handle UTF-8 that is bound to happen sooner or later, doesn't matter if you try to hide it in this particular case. |
|
@damianam I agree this is an edge case and perhaps a shoot-in-your-own-foot situation, but since this surprised me a bit when I was hitting it, it's in a very commonly used generic easyblock, and it's pretty much trivial to fix, I would like to get this merged. It's not like we can shoot ourselves in the foot here, can we? ;) I tested this with both Python 2 & 3, on different systems, should be OK to merge without introducing problems... |
|
@boegel That's fine for me. I am not sure I agree this is our duty to fix this, since whoever is using this will hit the same error further down the road, but I guess it a reasonable safeguard for this easyblock. Going in! |
fix for following error (hit this on CentOS 8 when installing
Bison-3.3.2.ebwith$LC_ALLset toC)