I would argue that all parsers should be CR/LF agnostic, and just work. How many places realistically would we need to strip them? Barring that, how many places would we need to introduce a little converter to convert all "\r\n" => "\n". I would say that the latter is likely the easiest, and the former is the more correct approach.
Anyway, that's my $0.021468 (price rise due to inflation, adjusted post-Brexit) EBo -- On Jul 4 2016 3:27 AM, andy pugh wrote: > > https://forum.linuxcnc.org/forum/26-turning/30748-southbend-magnaturn-612-conversion-to-linuxcnc?start=20#76957 > > At the moment halcompile tried to split the .comp file at the ";;" > token by using a split on the patttern "\n;;\n". If the file contains > "\r\n;;\r\n" instead then the split fails with relatively cryptic > error messages. > > Spotting the problem is easy, but is the correct behaviour to warn > the > user or to quietly correct the file parts prior to further > conversion? > I think I prefer the latter course of action. > > -- > atp > "A motorcycle is a bicycle with a pandemonium attachment and is > designed for the especial use of mechanical geniuses, daredevils and > lunatics." > — George Fitch, Atlanta Constitution Newspaper, 1916 > > > ------------------------------------------------------------------------------ > Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in > San > Francisco, CA to explore cutting-edge tech and listen to tech > luminaries > present their vision of the future. This family event has something > for > everyone, including kids. Get more information and register today. > http://sdm.link/attshape > _______________________________________________ > Emc-developers mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/emc-developers ------------------------------------------------------------------------------ Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San Francisco, CA to explore cutting-edge tech and listen to tech luminaries present their vision of the future. This family event has something for everyone, including kids. Get more information and register today. http://sdm.link/attshape _______________________________________________ Emc-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-developers
