From B.Anastasatos@MyRealBox.com  Fri Nov 23 12:43:07 2001
Return-Path: <B.Anastasatos@MyRealBox.com>
Received: from irodis.panteion.gr (irodis.panteion.gr [194.177.218.1])
	by hub.freebsd.org (Postfix) with ESMTP id 563F337B418
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 23 Nov 2001 12:42:56 -0800 (PST)
Received: from MyRealBox.com (port4.panteion.gr [194.177.223.134])
	by irodis.panteion.gr (8.10.1/8.10.1) with ESMTP id fANKgkm17052;
	Fri, 23 Nov 2001 22:42:47 +0200 (EET)
Message-Id: <3BFEB44F.459165A8@MyRealBox.com>
Date: Fri, 23 Nov 2001 22:40:47 +0200
From: =?iso-8859-7?Q?=C1=ED=E1=F3=F4=E1=F3=DC=F4=EF=F2=20=C2=E1=F3=DF=EB=E5=E9=EF=F2?= <B.Anastasatos@MyRealBox.com>
Reply-To: B.Anastasatos@Freemail.gr
To: FreeBSD-gnats-submit@freebsd.org
Cc: Panagiotis Astithas <past@netmode.ece.ntua.gr>
Subject: Fix /usr/src/sbin/mount_msdosfs/iso72dos bugs

>Number:         32233
>Category:       misc
>Synopsis:       Fix /usr/src/sbin/mount_msdosfs/iso72dos bugs
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Nov 23 12:50:00 PST 2001
>Closed-Date:    Sun Apr 14 10:00:03 PDT 2002
>Last-Modified:  Sun Apr 14 10:00:03 PDT 2002
>Originator:     Basileios Anastasatos
>Release:        FreeBSD 4.3-RELEASE i386
>Organization:
none
>Environment:
System: FreeBSD zephyr.compass 4.3-RELEASE FreeBSD 4.3-RELEASE #1: Sun
Nov 11 22:56:01 EET 2001
toor@zephyr.compass:/usr/src/sys/compile/2001-11-11 i386


>Description:

  /usr/scr/sbin/mount_msdosfs/iso72dos, submitted by me with the PR
  misc/32119 contains a few inaccuracies: ISO-8859-7 middle dot is
  mapped incorrectly to CP-737 bullet operator and ISO-8859-7 capital
  iota with diaeresis and capital upsilon with diaeresis are not mapped
  at all to CP-737.

>How-To-Repeat:

  I didn't verify the bug by experimenting with filenames in MS Windows
  partitions, just trusted the CP-737 to Unicode map found in Andreas
  Brouwer kbd package for Linux.  Previously I used the maps found in
  RFC 1947 ("Greek Character Encoding for Electronic Mail Messages") by
  Diomedes Spinellis, which didn't provide a mapping to CP-737 for
  capital iota and upsilon with diaeresis.

>Fix:

  The necessary patch to /usr/scr/sbin/mount_msdosfs/iso72dos follows:

*** iso72dos.old	Tue Nov 20 00:35:34 2001
--- iso72dos	Fri Nov 23 17:57:57 2001
***************
*** 35,42 ****
  0x3f 0x3f 0x3f 0x3f 0x3f 0x3f 0x3f 0x3f
  0xf9 0xdc 0xdd 0xde 0xfa 0xdf 0xfc 0xfd
  0xfb 0xfe 0xb6 0xb8 0xb9 0xba 0xbc 0xbe
! 0xbf 0xb1 0x3f 0x3f 0x3f 0x3f 0x3f 0x3f
! 0xb0 0xb7 0x3f 0x3f 0x3f 0xb2 0x3f 0x3f
  #
  # u2d: 16 rows of Latin7 -> CP737 conversion table (upper half)
  #
--- 35,42 ----
  0x3f 0x3f 0x3f 0x3f 0x3f 0x3f 0x3f 0x3f
  0xf9 0xdc 0xdd 0xde 0xfa 0xdf 0xfc 0xfd
  0xfb 0xfe 0xb6 0xb8 0xb9 0xba 0xbc 0xbe
! 0xbf 0xb1 0x3f 0x3f 0xda 0xdb 0x3f 0x3f
! 0xb0 0x3f 0xb7 0x3f 0x3f 0xb2 0x3f 0xa0
  #
  # u2d: 16 rows of Latin7 -> CP737 conversion table (upper half)
  #
***************
*** 44,57 ****
  0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
  0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
  0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
! 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
  0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
! 0xf8 0xf1 0xfd 0x00 0x00 0x00 0xea 0xf9
  0xeb 0xec 0xed 0x00 0xee 0x00 0xef 0xf0
  0x00 0x80 0x81 0x82 0x83 0x84 0x85 0x86
  0x87 0x88 0x89 0x8a 0x8b 0x8c 0x8d 0x8e
  0x8f 0x90 0x00 0x91 0x92 0x93 0x94 0x95
! 0x96 0x97 0x00 0x00 0xe1 0xe2 0xe3 0xe5
  0x00 0x98 0x99 0x9a 0x9b 0x9c 0x9d 0x9e
  0x9f 0xa0 0xa1 0xa2 0xa3 0xa4 0xa5 0xa6
  0xa7 0xa8 0xaa 0xa9 0xab 0xac 0xad 0xae
--- 44,57 ----
  0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
  0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
  0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
! 0xff 0x00 0x00 0x00 0x00 0x00 0x00 0x00
  0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
! 0xf8 0xf1 0xfd 0x00 0x00 0x00 0xea 0xfa
  0xeb 0xec 0xed 0x00 0xee 0x00 0xef 0xf0
  0x00 0x80 0x81 0x82 0x83 0x84 0x85 0x86
  0x87 0x88 0x89 0x8a 0x8b 0x8c 0x8d 0x8e
  0x8f 0x90 0x00 0x91 0x92 0x93 0x94 0x95
! 0x96 0x97 0xf4 0xf5 0xe1 0xe2 0xe3 0xe5
  0x00 0x98 0x99 0x9a 0x9b 0x9c 0x9d 0x9e
  0x9f 0xa0 0xa1 0xa2 0xa3 0xa4 0xa5 0xa6
  0xa7 0xa8 0xaa 0xa9 0xab 0xac 0xad 0xae
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->analyzed 
State-Changed-By: ache 
State-Changed-When: Fri Nov 23 14:27:37 PST 2001 
State-Changed-Why:  
Committed into -current 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=32233 
State-Changed-From-To: analyzed->closed 
State-Changed-By: phantom 
State-Changed-When: Sun Apr 14 09:59:40 PDT 2002 
State-Changed-Why:  
MFCed. Thanks! 


http://www.freebsd.org/cgi/query-pr.cgi?pr=32233 
>Unformatted:
