camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] Commented: (CAMEL-1568) Converting from stream/reader to string changes line breaks other than "\n"
Date Tue, 28 Apr 2009 05:01:39 GMT

    [ https://issues.apache.org/activemq/browse/CAMEL-1568?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=51413#action_51413
] 

Claus Ibsen commented on CAMEL-1568:
------------------------------------

Thanks for the the patch Christian

> Converting from stream/reader to string changes line breaks other than "\n"
> ---------------------------------------------------------------------------
>
>                 Key: CAMEL-1568
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1568
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 1.6.0, 2.0-M1
>            Reporter: christian ohr
>            Assignee: Claus Ibsen
>             Fix For: 1.6.1, 2.0-M2
>
>         Attachments: IOConverter-1.6.1.patch, IOConverter-2.0m2.patch
>
>
> The IOConverter#toString(Reader/Stream) copies the input data line by line. A line is
considered to be terminated by any one of a line feed ('\n'), a carriage return ('\r'), or
a carriage return followed immediately by a linefeed. Unfortunately, the lines are always
concatenated with "\n", so that HL7 messages (which use "\r") become unusable after conversion.
> Also see http://www.nabble.com/HL7-messages-become-unusable-after-convertBodyTo%28String.class%29-td23219748.html

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message