1827452 Members
4791 Online
109965 Solutions
New Discussion

CIFS caracte r mapping

 
[JFM]
Occasional Advisor

CIFS caracte r mapping

Using CIFS on VMS 8.3 I64.
From a Vista desktop, I can map a share and create a text file that can be read properly with EVE.
When I create a text file from VMS in the shared directory, the file content seems to be interpreted as UNICODE :

$ type test.txt
aaa
bbb
ccc
$

With Notepad :
慡a 扢b 捣c

I guess there should be a configuration attribute to manage this ...

Best regards
Jean-François
5 REPLIES 5
Kris Clippeleyr
Honored Contributor

Re: CIFS caracte r mapping

Jean-François,

I recently was in contact with the engineers currently working on the port of SAMBA to VMS.
I reported the same problem with Notepad. They assured me they are working on a fix, and advised me to use Wordpad in the mean time.

Hope this helps,
Kris (aka Qkcl)
I'm gonna hit the highway like a battering ram on a silver-black phantom bike...
Hein van den Heuvel
Honored Contributor

Re: CIFS caracte r mapping

Jean-François,

Welcome to the HP OpenVMS ITRC Forums!

>> the file content seems to be interpreted as UNICODE :

No, the problem does not lie in the characters but in the line terminators.
Windows expects CR-LF, you probably provided a 'LF' only.
In VMS speak, do a DIR/FULL and/or DUMP/BLOC=COUNT=1.

To 'fix' the file try after a convert on VMS:
$CONV/FDL="record; format stream" test.txt fixed.txt

Of course that's not a fix, just a way to avoid a problem.

Notepad is nice and 'light', but braindead. Always was, Always will be. No love lost.
Wordpad seems to heavy / inflexible to me.
If I can not use notepad then I us "Crimson Editor" or TextPad instead. Many other alternatives exist of course.

hth,
Hein.

[JFM]
Occasional Advisor

Re: CIFS caracte r mapping

Thanks Kris

I discover that chineese caracters appearing in notepad were not displayed on ITRC.

Using Wordpad gives me
aa bb cc
on a single line

Still not OK ...
But slightly better !

Jean-François
Kris Clippeleyr
Honored Contributor

Re: CIFS caracte r mapping

Jean-François,
Forgot to mention that in the SMB.CONF, you have to specify either in the "[global]" section or in the per-share section, the clause "vfs objects = varvfc" if using the CIFS T1.0A port of SAMBA.
Regards,
Kris (aka Qkcl)
I'm gonna hit the highway like a battering ram on a silver-black phantom bike...
[JFM]
Occasional Advisor

Re: CIFS caracte r mapping

the varvfs option is better. It does not preserve lines with notepad, but is ok with wordpad.