Bug 66885

Summary: autogen.input with CRLF causes inproper error message
Product: LibreOffice Reporter: Isamu Mogi <saturday6c>
Component: LibreOfficeAssignee: Not Assigned <libreoffice-bugs>
Status: RESOLVED NOTABUG    
Severity: normal    
Priority: medium    
Version: 4.2.0.0.alpha0+ Master   
Hardware: Other   
OS: Cygwin   
Whiteboard:
Crash report or crash signature: Regression By:
Attachments: sample autogen.input
use regexp instead of chomp

Description Isamu Mogi 2013-07-14 02:30:06 UTC
Created attachment 82398 [details]
sample autogen.input

When autogen.input's newline character is CRLF, autogen.sh says inproper
error message.

For example

* autogen.input

--enable-debug[CR][LF]

* error message:

$ ./autogen.sh
C:/libo/autogen.sh
' '--srcdir=/cygdrive/c/libo/src' '--enable-option-checking=fatal'
configure: error: invalid feature name: debug
Error running configure at C:/libo/autogen.sh line 207.
make: *** [C:/libo/config_host.mk] Error 2


"invalid feature name: debug" is shown but --enable-debug is valid option.
Comment 1 Isamu Mogi 2013-07-14 02:37:19 UTC
Created attachment 82399 [details]
use regexp instead of chomp

The reason is that autogen.sh read_args($) calls chomp but it isn't support CRLF.
I uploaded patch to use regexp instead of chomp.
Comment 2 Isamu Mogi 2013-07-29 10:19:21 UTC
This isn't a bug.

For more information: https://gerrit.libreoffice.org/#/c/4992/