MiniVend Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

Re: Trouble with Search string! (uppercase/lowercase)



Quoting jojo@buchonline.net (jojo@buchonline.net):
> 
> Hi list,
> 
> i have make some items with different uppercase and lowercase string and
> i have test the effect with mv_case. There are some results:
> 
> 1) Some item has a string like "JOACHIM" (one item) or "joachim" (2
> items) and mv_case is no or 0!
> Search for joachim -> SUCCESS! 3 items found!
> 
> 2) item has a string like "JOACHIM" or "joachim" and mv_case is yes or
> 1!
> Search for JOACHIM -> SUCCESS! 1 item found!
> 
> Another test with "MÜLLER" 
> 
> 1) Some item has a string like "MÜLLER" (one item) or "müller" (2
> items) and mv_case is no or 0!
> Search for müller -> SUCCESS! 3 items found!
> 
> 2) item has a string like "MÜLLER" or "müller" and mv_case is yes or
> 1!
> Search for MÜLLER -> FAILURE!
> 
> 3)item has a string like "MÜLLER" or "müller" and mv_case is yes or
> 1!
> Search for LLER -> FAILURE!
> 
> It seems me, MV hase trouble with german umlaut. Am i right?
> How can i solve this trouble. It is very important to solve this,
> because we are a german bookstore and a lot of words has a german
> umlaut.
> 
> I have had another trouble with german umlaut and creating new user
> account. I have solve this, because my little mental capability of perl
> was good to find the part of the code and to change this. But where is
> the part of the MV code to patch the search string?
> 

Run this little perl program on the machine hosting MV:

  perl -MPOSIX -e 'print POSIX::setlocale(&POSIX::LC_COLLATE), "\n"'

If it returns "C", then you don't have the proper locale set on your 
machine and searching will not find what is needed.

Normally, MiniVend should look for things with locale in mind, but
if anyone can find any bugs there then I would certainly look into
them.

-- 
Mike Heins                          http://www.minivend.com/  ___ 
                                    Internet Robotics        |_ _|____
                                    131 Willow Lane, Floor 2  | ||  _ \
It's a little-known fact            Oxford, OH  45056         | || |_) |
that the Y1K problem caused         <mikeh@minivend.com>     |___|  _ <
the Dark Ages. -- unknown           513.523.7621 FAX 7501        |_| \_\


Search for: Match: Format: Sort by: