The Samba-Bugzilla – Attachment 783 Details for
Bug 2040
Samba fails with some encodings having odd case rules
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
Test script to validate the patch
samba-turkish-torture (text/plain), 2.24 KB, created by
Recai Oktas
on 2004-11-17 16:54:11 UTC
(
hide
)
Description:
Test script to validate the patch
Filename:
MIME Type:
Creator:
Recai Oktas
Created:
2004-11-17 16:54:11 UTC
Size:
2.24 KB
patch
obsolete
>#!/bin/sh ># ># TODO ># Copyright é 2004 Recai Oktaà<roktas@omu.edu.tr> ># ># Licensed under the GNU General Public License, version 2. ># See the file `http://www.gnu.org/copyleft/gpl.txt'. ># ># Last modified: Thu, 18 Nov 2004 01:36:08 +0200 > >set -e > >PATH="$PWD:$PATH" > >TEST_CHARS="ı I i Ä° Ä Ä Ã¼ à ŠŠö Ã" >TEST_EQUAL_STRINGS="Äiı|Äiı Äiı|Äİı Äiı|ÄiI Äiı|ÄÄ°I Äiı|ÄÄ°I" >TEST_NEQUAL_STRINGS="Äiı|ÄIı Äiı|ÄÄ°i Äiı|ÄiÄ° Äiı|Äıı Äiı|ÄIı" > >if ! which t_push_ucs2 >/dev/null; then > echo >&2 "Could not locate t_push_ucs2 in path!" > error=1 >fi > >if ! which t_strcmp >/dev/null; then > echo >&2 "Could not locate t_strcmp in path!" > error=1 >fi > >[ "$error" ] && exit 1 > >case "$LANG" in > tr_TR) > echo >&2 "WARNING: You're running the tests under the ISO-8859-9 Turkish locale." > echo >&2 " Make sure that you've set the 'unix charset' accordingly." > echo >&2 " Otherwise t_push_ucs2 tests will fail." > ;; > tr_TR.UTF-8) > ;; > *) > echo >&2 "ERROR: These tests were arranged for Turkish locales." > echo >&2 " Please setup a Turkish locale if you wish to " > echo >&2 " perform Turkish torture tests." > exit 1 > ;; >esac > >if [ "`locale charmap`" != "UTF-8" ]; then > TEST_CHARS=`echo "$TEST_CHARS" | iconv --from UTF-8` > TEST_STRINGS=`echo "$TEST_STRINGS" | iconv --from UTF-8` >fi > >echo "Test -- t_push_ucs2" >echo \ >"------------------------------------------------------------------------" >set -- $TEST_CHARS >while [ -n "$1" ]; do > command="t_push_ucs2 $1" > echo -n "===> $command: "; $command > shift >done > >echo "" >echo "" >echo "Test -- t_strcmp for _equal_ strings" >echo \ >"------------------------------------------------------------------------" >set -- $TEST_EQUAL_STRINGS >while [ -n "$1" ]; do > s1="`echo $1 | awk -F '|' '{ print $1 }'`" > s2="`echo $1 | awk -F '|' '{ print $2 }'`" > > command="t_strcmp $s1 $s2" > echo -n "===> $command: "; $command > shift >done > >echo "" >echo "" >echo "Test -- t_strcmp for _non-equal_ strings" >echo \ >"------------------------------------------------------------------------" >set -- $TEST_NEQUAL_STRINGS >while [ -n "$1" ]; do > s1="`echo $1 | awk -F '|' '{ print $1 }'`" > s2="`echo $1 | awk -F '|' '{ print $2 }'`" > > command="t_strcmp $s1 $s2" > echo -n "===> $command: "; $command > shift >done
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 2040
:
775
|
776
|
782
| 783 |
784
|
785
|
826