handle carriage returns in cleanws()
When configuring ffmpeg in a cygwin shell for a non-cygwin toolchain, the generated cc_ident contains a carriage return, which is propagated into config.h. The cause seems to be that cygwin treats carriage return as a normal character. I can workaround this by adding 's/\r//' to cleanws' sed command in a patching step. I don't know whether cygwin + non-cygwin toolchain is supported by ffmpeg, but it would be nice if cleanws removes '\r' by default.
On Sat, Aug 17, 2013 at 09:58:54PM +0800, 俞晓磊 wrote:
When configuring ffmpeg in a cygwin shell for a non-cygwin toolchain, the generated cc_ident contains a carriage return, which is propagated into config.h. The cause seems to be that cygwin treats carriage return as a normal character. I can workaround this by adding 's/\r//' to cleanws' sed command in a patching step.
I don't know whether cygwin + non-cygwin toolchain is supported by ffmpeg, but it would be nice if cleanws removes '\r' by default.
added 's/\r//g' thanks [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB What does censorship reveal? It reveals fear. -- Julian Assange
participants (2)
-
Michael Niedermayer -
俞晓磊