Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#85 closed defect (fixed)

Character translation problem

Reported by: herwigb Owned by: psmedley
Priority: critical Milestone: Samba Server for eCS (OS/2) 1.0.1
Component: Samba Server Version: 3.0.34
Keywords: Cc: herwig.bauernfeind@…

Description

Run the following REXX script on a Samba share:

/* REXX */
'@echo off'
do I = 128 to 255
    say I'_'d2x(I)'_'copies(d2c(I),4)
    'echo TEST >'I'_'d2x(I)'_'copies(d2c(I),4)
    if stream(I'_'d2x(I)'_'copies(d2c(I),4),'c','query exists') = "" then do
        say "Filename with "I" ("d2x(I)") in name could not be created properly!"
        'PAUSE'
    end
end

This script tries to create files with ASCII chars between 128 and 255 and check afterwards if the file could be created properly. It chokes on 244 (0xF4) and 245 (0xF5) and pretends to create the others normally.

Looking at the directory afterwards however, you will see that the high ASCII charecters in some filennames seem to have been changed into ASCII 127. 198-199, 207-216, 221-222, 224, 226-240, 242-243, 247, 249, 251-252.

The test was perform with current Samba server (3.0.34) and current ndpsmb.dll (1.5).

The same script runs normally run on a WSEB share via LAN Requester.

This was discovered when testing for Ticket #68

Change History (5)

comment:1 Changed 9 years ago by diver

  • Milestone changed from Samba Server for eCS (OS/2) 1.1 to Samba Server for eCS (OS/2) 1.0.2

comment:2 Changed 9 years ago by herwigb

  • Version set to 3.0.34

comment:3 Changed 9 years ago by diver

this seems to work if unix charset = IBM-850 is set

comment:4 Changed 9 years ago by herwigb

  • Resolution set to fixed
  • Status changed from new to closed

comment:5 Changed 9 years ago by herwigb

  • Milestone changed from Samba Server for eCS (OS/2) 1.0.2 to Samba Server for eCS (OS/2) 1.0.1
Note: See TracTickets for help on using tickets.