Do you have NLS installed?

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Aleksejs
Truhans
Sent: 01 September 2004 18:28
To: [EMAIL PROTECTED]
Subject: [U2] UV: FMT and FMTS processing of CHAR(247) differs

Dear All!

Please, shed some light on the strange behaviour of UV BASIC FMTS
function.

Environment: UV 9.6.2.6 and 9.6.2.1 on HPUX 11i on PA-RISC 8xxx.

Problem: FMTS is supposed to FMT each field of a given dynamic array.
It appears to be wrong if source data in a field of the array contains 
CHAR(247).
The character in question is a letter of Latvian language, one of three 
languages we've packed
into 256 ASCII values and it would be hard to relocate it to some other 
place,
not to mention conversion of terabytes of data and hundreds of 
workplaces we have.

Reproduction: following program in our environment gives following
results:

                 SUBROUTINE SWR.T1

T='This is a text which will wrap at some point'
T:[EMAIL PROTECTED]:'Here goes another field yet with same purpose'
F=FMTS(T, '16T')
CONVERT @TM TO CHAR(10) IN F
CONVERT @FM TO '|' IN F
CONVERT CHAR(32) TO '.' IN F
CONVERT CHAR(247) TO '=' IN F
PRINT 'FMTS='
PRINT F
PRINT '=FMTS'

T='This is a text which will wr':CHAR(247):'p at some point'
T:[EMAIL PROTECTED]:'Here goes ano':CHAR(247):'her field yet with same purpose'
F=FMTS(T, '16T')
CONVERT @TM TO CHAR(10) IN F
CONVERT @FM TO '|' IN F
CONVERT CHAR(32) TO '.' IN F
CONVERT CHAR(247) TO '=' IN F
PRINT 'FMTS='
PRINT F
PRINT '=FMTS'

F=FMT(T<1>, '16T'):@FM:FMT(T<2>, '16T')
CONVERT @TM TO CHAR(10) IN F
CONVERT @FM TO '|' IN F
CONVERT CHAR(32) TO '.' IN F
CONVERT CHAR(247) TO '=' IN F
PRINT 'FMT='
PRINT F
PRINT '=FMT'

END

FMTS=
This.is.a.text..
which.will.wrap.
at.some.point...|Here.goes.......
another.field...
yet.with.same...
purpose.........
=FMTS
FMTS=
This.is.a.text..
which.will.wr...=p.at.some.point.|Here.goes.ano...=her.field.yet...
with.same.......
purpose.........
=FMTS
FMT=
This.is.a.text..
which.will.wr=p.
at.some.point...|Here.goes.......
ano=her.field...
yet.with.same...
purpose.........
=FMT

Thank you in advance,
Aleksejs.
-------
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/


The information contained in this email is strictly confidential and for the use of 
the addressee only, unless otherwise indicated. If you are not the intended recipient, 
please do not read, copy, use or disclose to others this message or any attachment. 
Please also notify the sender by replying to this email or by telephone +44 (0)20 7896 
0011 and then delete the email and any copies of it. Opinions, conclusions (etc.) that 
do not relate to the official business of this company shall be understood as neither 
given nor endorsed by it.  IG Markets Limited and IG Index Plc are authorised and 
regulated by the Financial Services Authority and, in Australia, by the Australian 
Securities and Investments Commission.
-------
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to