Skip Menu |
 

This queue is for tickets about the Config-Std CPAN distribution.

Report information
The Basics
Id: 21547
Status: open
Priority: 0/
Queue: Config-Std

People
Owner: BRICKER [...] cpan.org
Requestors: duncan.garland [...] ntlworld.com
bitcard [...] kevin.lebleu.info
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: v0.0.4
Fixed in: (no value)



Subject: Carriage returns cause confusing error message
Download (untitled) / with headers
text/plain 836b
If the config file being read contains carriage returns and line feeds at the end of each line rather than just line feeds (i.e. the standard Windows file format, when read on a machine expecting Unix file format), Config::Std emits an errors that are very difficult to make sense of. Example of error: Error in config file './test/data_mini_bus_test_1.conf' near: [test_a] The above error leaves the user pondering why their config file that looks perfectly valid is generating errors, unless they happen to look at it in something that shows them the extra ^M at the end of each line. This error is generated at about line 454 in _load_config_for(), in the else case labeled "Mystery...". This should be corrected by either allowing \r\n everywhere \n is allowed, or giving a clearer error message when a \r is detected.
Subject: Config::Std
Date: Wed, 22 Nov 2006 15:47:47 -0000
To: <bug-config-std [...] rt.cpan.org>
From: "Duncan Garland" <duncan.garland [...] ntlworld.com>
Download (untitled) / with headers
text/plain 515b
Hi, Your module seems to be sensitive to the stray Control M characters which get into files sometimes when they are transfered backwards and forwards between Windows and Unix. The module wouldn't accept a section label unless I put a comment after it. The second example kept failing. [FILE_LOCATIONS] # This is OK [FILE_LOCATIONS] When I ran it through a utility which cleans up the Control M characters, it begin to work. (It still didn't nest the hashes properly, though.) All the best. Duncan Garland
Download (untitled) / with headers
text/plain 527b
Hello. With Boston.pm's help, I have taken over maintenance of Damian's Config::Std. I have merged the RT records for Kevin & Duncan's reports of obscure messages for ^M CRLF bearing INI files on POSIX locales. The 0.9 release will be doc patches only so this will be listed in =h1 bugs. I would expect it to be on the fix list for 1.0, this has to be fixed. It's just too easy for CRLFs to leak into config files being redeployed via a desktop ... especially since we are often replacing FTP with SCP. bill BRICKER@cpan.org
Subject: RE: [rt.cpan.org #21547] Carriage returns cause confusing error message
Date: Wed, 14 Apr 2010 21:29:30 +0100
To: <bug-Config-Std [...] rt.cpan.org>
From: "Duncan Garland" <duncan.garland [...] ntlworld.com>
Download (untitled) / with headers
text/plain 860b
Thanks Show quoted text
-----Original Message----- From: William D (Bill) Ricker via RT [mailto:bug-Config-Std@rt.cpan.org] Sent: 08 April 2010 03:37 To: bitcard@kevin.lebleu.info; duncan.garland@ntlworld.com Subject: [rt.cpan.org #21547] Carriage returns cause confusing error message <URL: https://rt.cpan.org/Ticket/Display.html?id=21547 > Hello. With Boston.pm's help, I have taken over maintenance of Damian's Config::Std. I have merged the RT records for Kevin & Duncan's reports of obscure messages for ^M CRLF bearing INI files on POSIX locales. The 0.9 release will be doc patches only so this will be listed in =h1 bugs. I would expect it to be on the fix list for 1.0, this has to be fixed. It's just too easy for CRLFs to leak into config files being redeployed via a desktop ... especially since we are often replacing FTP with SCP. bill BRICKER@cpan.org


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.