Hi Paul,
I'm a bit concerned about the implications of removing those characters
without any warning to the user or programmer. I'm skeptical that they
aren't valid in the first place, why remove them at all?
Cheers,
Josh
On Wed, Jul 02, 2008 at 07:48:02PM +0200, [EMAIL PROTECTED] wrote:
> From: Paul POULAIN <[EMAIL PROTECTED]>
>
> (< and > being the 0088 and 0089 UNICODE chars)
>
> On windows, the bug is silent, as firefox or IE or Opera don't display
> unknown UNICODE chars
> On Linux, it's evident, as you get a small square with the UNICODE value.
> ---
> C4/Charset.pm | 4 ++++
> 1 files changed, 4 insertions(+), 0 deletions(-)
>
> diff --git a/C4/Charset.pm b/C4/Charset.pm
> index a676b7c..de5fbbd 100644
> --- a/C4/Charset.pm
> +++ b/C4/Charset.pm
> @@ -1000,6 +1000,10 @@ $chars{0xda20}=0x02cc; #
> my $length=scalar(@data);
> for (my $i = 0; $i < scalar(@data); $i++) {
> my $char= $data[$i];
> + # discard 0088 and 0089, that are added by BNF for starting articles
> + next if $char eq 0x0088;
> + next if $char eq 0x0089;
> +
> if ($char >= 0x00 && $char <= 0x7F){
> #IsAscii
>
> --
> 1.5.3.2
>
> _______________________________________________
> Koha-patches mailing list
> [email protected]
> http://lists.koha.org/mailman/listinfo/koha-patches
_______________________________________________
Koha-patches mailing list
[email protected]
http://lists.koha.org/mailman/listinfo/koha-patches