Windows line endings in .cabal file goes wrong

Hi When installing a .cabal package which has Windows line endings, the executable name is read as file^M. There are a few possible solutions: 1) Ban \r from .cabal files - cabal-upload should check this if this choice is made. 2) Cope with \r, a simple filter (/= '\r') should be sufficient. Thanks Neil

Neil Mitchell wrote:
When installing a .cabal package which has Windows line endings, the executable name is read as file^M. There are a few possible solutions:
1) Ban \r from .cabal files - cabal-upload should check this if this choice is made.
2) Cope with \r, a simple filter (/= '\r') should be sufficient.
I have deja vu - I'm sure we already fixed this. What version of Cabal etc.? Cheers, Simon

Hi
1) Ban \r from .cabal files - cabal-upload should check this if this choice is made.
2) Cope with \r, a simple filter (/= '\r') should be sufficient.
I have deja vu - I'm sure we already fixed this. What version of Cabal etc.?
I was posting this on behalf of someone on haskell-cafe who ran into this issue. If you've seen/fixed this already, then no need to bother, I very much doubt they are running HEAD Cabal. Thanks Neil
participants (2)
-
Neil Mitchell
-
Simon Marlow