提交 98f6d1a6 编写于 作者: P Peter Oberparleiter 提交者: Martin Schwidefsky

s390/sclp: fix new line detection

When printing multi-line text using sclp_print, line endings are not
correctly handled. The routine is expecting an EBCDIC new line character
as line terminator while the input text is encoded in ASCII format.

Fix this problem by modifying sclp_print to scan for ASCII new line
characters.
Signed-off-by: NPeter Oberparleiter <peter.oberparleiter@de.ibm.com>
Signed-off-by: NMartin Schwidefsky <schwidefsky@de.ibm.com>
上级 a8f6e7f7
...@@ -225,7 +225,7 @@ _sclp_print: ...@@ -225,7 +225,7 @@ _sclp_print:
ahi %r2,1 ahi %r2,1
ltr %r0,%r0 # end of string? ltr %r0,%r0 # end of string?
jz .LfinalizemtoS4 jz .LfinalizemtoS4
chi %r0,0x15 # end of line (NL)? chi %r0,0x0a # end of line (NL)?
jz .LfinalizemtoS4 jz .LfinalizemtoS4
stc %r0,0(%r6,%r7) # copy to mto stc %r0,0(%r6,%r7) # copy to mto
la %r11,0(%r6,%r7) la %r11,0(%r6,%r7)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册