Bug 109798
Summary: | perl inline module generates broken C code | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Bastien Nocera <bnocera> | ||||
Component: | perl-Inline | Assignee: | Jason Vas Dias <jvdias> | ||||
Status: | CLOSED NOTABUG | QA Contact: | |||||
Severity: | medium | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | rawhide | CC: | perl-devel | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | All | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2006-03-15 23:35:50 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
Bastien Nocera
2003-11-11 22:05:25 UTC
Created attachment 95914 [details]
inline C test case
Still happens on rawhide. Well, this is actually because in perl-5.8.x, the <<EOF 'here-doc' quote-like operator does interpolation by default, just like the "" or qq operator; ie. the \n in "My string: %s\n" is changed into a literal new line character in the Inline C source . To turn off interpolation in the here-doc, instead of : use Inline C => <<EOT; do: use Inline C => <<'EOT'; With that modification, your testcase.pl program works fine on FC-4, FC-5, RHEL-3, and RHEL-4. I think the reason it worked with perl-5.8.0 in RHL-9, is that interpolation of here-document strings was broken (perhaps by UTF-8-ness) whereas now it works as intended. |