[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: [mv] Regarding locale and patch!
>****** message to minivend-users from jojo@buchonline.net ******
>
>Hi list,
>
>i have try to patch the Search.pm several times. But with no succuss.
>This is the first time with MV 3.14-3 (to patch any files with no
>success).
>
>It is curious! After editing the Searchpm file with xemacs-20.4 and
>restart the minivend server, i get
>
>---snip------------------
>server:# bin/start
>syntax error at /home/mvend/lib/Vend/Search.pm line 35, near "$ =~"
>BEGIN failed--compilation aborted at /home/mvend/bin/minivend line 227.
>server:#
>---snip------------------
>
>diff tell me
>
>---snip------------------
>server:#diff Search.pm.sic Search.pm
>35c35
>< if($ =~ /win32/i) {
>---
>> if($ =~ /win32/i) {
>---snip------------------
>
>I can't see any difference! But with a hexeditor, is see the difference
>like
>
>hexedit Search.pm.sic (original)
>00000410 0A 0A 69 66 28 24 0F 20 3D 7E 20 2F 77 69 6E 33 32 2F 69 29
>..if($. =~ /win32/i)
> ^^^^^^^^^
>hexedit Search.pm (after patching)
>00000410 0A 0A 69 66 28 24 20 3D 7E 20 2F 77 69 6E 33 32 2F 69 29 20
>..if($ =~ /win32/i)
> ^^^^^
>
...
>
>Any hints, tips and helps are very welcome!
>
>Thanks!
>
>Joachim
>
>
In ASCII the character 0F is "shift in", a control character to resume the
default character set. (at least it was on the PDP-11. I have no idea what
it is used for today) It is entered as ^O, so maybe you tried to open a
file at that spot and accidentally entered this character. Many text
editors will not display control characters, but if you move forward over
the spot with the arrow keys, you should need an extra keypress to move
over this spot.
If you erase this char with hexedit, you should be ok again.
Frank
--
Frank Miedreich
Max-Planck-Institut fuer psychologische Forschung
Leopoldstr. 24 80802 Muenchen +49 89 38602-237