Opened 16 years ago

Closed 15 years ago

Last modified 15 years ago

#85 closed defect (fixed)

Character translation problem

Reported by: Herwig Bauernfeind Owned by: Paul Smedley
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 by Silvan Scherrer, 16 years ago

Milestone: Samba Server for eCS (OS/2) 1.1Samba Server for eCS (OS/2) 1.0.2

comment:2 by Herwig Bauernfeind, 15 years ago

Version: 3.0.34

comment:3 by Silvan Scherrer, 15 years ago

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

comment:4 by Herwig Bauernfeind, 15 years ago

Resolution: fixed
Status: newclosed

comment:5 by Herwig Bauernfeind, 15 years ago

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