HCL
Skip to main content  
 
   


SPRTechnote


LCSTREAM TRIM Method Does Not Appear to Be Working on UNIX

Technote Number: 1086615


Problem:
This issue was reported to Lotus software Quality Engineering and has been
addressed in Notes 6.0.3 and 6.5. In some multibyte character situations,
Notes was incorrectly removing trailing spaces. Now these situations are
handle correctly.

Excerpt from the Lotus Notes and Domino Release 6.0.3 MR fix list (available at
http://www.lotus.com/ldd):

SPR# SMOS5M2HUD - In some multibyte character situations, trailing spaces were
incorrectly removed. This problem has been fixed in 6.0.3.

Supporting Information:

As a potential workaround, use the SetFormat method before using Trim and set
the stream format to LCSTREAMFMT_LMBCS. Then set it back to the desired format
after the Trim. The reason for this is that Stream functions are always
carried out in UNICODE (characters are represented as two-byte integers), and
on UNIX, trailing blanks are not correctly checked for in LCStreamTrim.

See example below:

Option Public
Option Explicit
Uselsx "*lsxlc"

Sub Initialize
Dim teststream As New LCStream

Let teststream.Text = "test script "
Messagebox "(" & teststream.Text & ")"

teststream.SetFormat(LCSTREAMFMT_LMBCS)
teststream.Trim
Messagebox "(" & teststream.Text & ")"
End Sub
More >





  Document options
Print this document
Print view

  Search
Search Advanced Search


  Fix list views

 RSS feeds   RSS
Subscribe to the fix list

  Resources
Using this database
View notices

  HCL Support
HCL Support


    About HCL Privacy Contact