[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: Trouble with Search string! (uppercase/lowercase)
Dear Mike Heins,
thank you very much for your help. I have use your code and i have the
error messages. After looking around for a solution, i have set the
LC_CTYPE in my environment, restart my machine and have test your code
again. This is what i get:
server:/home/mvend[mvend]# perl bin/testx.pl
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LC_ALL = "de_DE.ISO_8859-1",
LC_NUMERIC = "C",
LC_CTYPE = "iso_8859_1",
LANG = "de_DE.ISO_8859-1"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
Current LC_CTYPE locale is C
No
Current LC_CTYPE locale is C
No
server:/home/mvend[mvend]#
This is the output from printenv:
LC_ALL=de_DE.ISO_8859-1
LC_NUMERIC=C
LANG=de_DE.ISO_8859-1
LC_CTYPE=iso_8859_1
I use FreeBSD 3.2 STABLE and i believe, i have set the locale right. I
am new in this kind of OS (UNIX) and i am an old windows user. Can
someone help me to set the environment right?
Any helps is very welcome!
Thanks!
Joachim
On 7 Sep, mikeh@minivend.com wrote:
> ****** message to minivend-users from mikeh@minivend.com ******
>
> Quoting jojo@buchonline.net (jojo@buchonline.net):
>>
>> Search for LLER -> FAILURE!
>>
>
> Here is a little test program that checks this:
>
> use POSIX;
> use locale;
>
> print "Current LC_CTYPE locale is ", setlocale(LC_CTYPE), "\n";
> $string = 'MÜLLER';
> $target = 'müller';
>
> print $string =~ /$target/i ? 'YES' : 'No';
> print "\n";
>
> setlocale(LC_CTYPE, 'de_DE');
> print "Current LC_CTYPE locale is ", setlocale(LC_CTYPE), "\n";
>
> print $string =~ /$target/i ? 'YES' : 'No';
> print "\n";
>
>
> Works here. Try setting LC_CTYPE to the proper locale before
> running MV.
>
--
Hans-Joachim Leidinger
buch online jojo@buchonline.net
Munscheidstr. 14 FAX: +49 209 1971449
45886 Gelsenkirchen