ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Re: Re: texutil "malformed UTF-8 character" error
       [not found] <4129C7B2.2010503@capdm.com>
@ 2004-08-23 10:36 ` Duncan Hothersall
  0 siblings, 0 replies; 5+ messages in thread
From: Duncan Hothersall @ 2004-08-23 10:36 UTC (permalink / raw)


>  > although the .tui file is full of entries as far as I can tell. Maybe
>  > something esle is wrong - still working on minimal file.
> 
> \starttext
> 
> \placelist[chapter][criterium=text]
> \placeindex[criterium=text]
> 
> \chapter{test}
> 
> \index{test} test
> 
> \stoptext
> 
> 
> can you send me the tui file?
> 
> Hans

This works fine - registers gain entries and are output correctly, and 
the .tui file has in it:

c \thisissectionseparator{:}
c \thisisutilityversion{2003.07.19}
c \thisisbytesequence{}
f b {tester}
c \mainreference{}{index:t}{2::0:0:0:0:0:0:0::1}{1}{}
c \initializevariable\usedcolorchannels{}
c \listentry{chapter}{1}{1}{test}{2::0:1:0:0:0:0:0::2}{2}
r e {index} {2} {} {test} {2::0:1:0:0:0:0:0::2} {2}
f e {tester}
c \initializevariable\lastpage{2}
c \initializevariable\lastpagenumber{2}
c \initializevariable\totalnofMPgraphics{0}
c \initializevariable\totalnofpositions{0}
c \initializevariable\totalnofparbackgrounds{0}
c \initializevariable\currentstrategypass{1}

Must be something I'm doing in the main file. I will continue to try to 
produce a minimal non-working example. Thanks for all the help thus far.

Duncan

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Re: texutil "malformed UTF-8 character" error
  2004-08-23 11:20 ` Duncan Hothersall
@ 2004-08-23 11:59   ` Hans Hagen
  0 siblings, 0 replies; 5+ messages in thread
From: Hans Hagen @ 2004-08-23 11:59 UTC (permalink / raw)


Duncan Hothersall wrote:

> Right, interesting - have upgraded to Perl 5.8.5, and now, having 
> removed the \def\testbytesequence{} from cont-new.tex, the error 
> message "malformed UTF-8 character" has gone away! Quite possibly the 
> RedHat 9 install of Perl 5.8.0 had some default of UTF-8 mode set 
> (though I couldn't see any evidence of it).

but still strange that ^^something triggers utf-8 

Hans 
 

-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                             | www.pragma-pod.nl
-----------------------------------------------------------------

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Re: texutil "malformed UTF-8 character" error
  2004-08-23  8:03 ` Duncan Hothersall
  2004-08-23  8:26   ` Taco Hoekwater
@ 2004-08-23 10:11   ` Hans Hagen
  1 sibling, 0 replies; 5+ messages in thread
From: Hans Hagen @ 2004-08-23 10:11 UTC (permalink / raw)


Duncan Hothersall wrote:

> although the .tui file is full of entries as far as I can tell. Maybe 
> something esle is wrong - still working on minimal file.

\starttext

\placelist[chapter][criterium=text]
\placeindex[criterium=text]

\chapter{test}

\index{test} test

\stoptext


can you send me the tui file? 

Hans  

-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                             | www.pragma-pod.nl
-----------------------------------------------------------------

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Re: texutil "malformed UTF-8 character" error
  2004-08-23  8:03 ` Duncan Hothersall
@ 2004-08-23  8:26   ` Taco Hoekwater
  2004-08-23 10:11   ` Hans Hagen
  1 sibling, 0 replies; 5+ messages in thread
From: Taco Hoekwater @ 2004-08-23  8:26 UTC (permalink / raw)



Hi,

On Mon, 23 Aug 2004 09:03:36 +0100, Duncan wrote:

> > (i run perl 5.8.0)
> 
> I'm running 5.8.0 too (on Redhat).

I'd definately try to get away from 5.8.0 as soon as possible. There were
quite a lot of (sometimes rather serious) bugs in 5.8.0, esp. in the multibyte 
handling, but also in other areas !

And you should also check if perl runs in UTF-8 mode by default. From the man
page:

          You can enable automatic UTF-8-ification of your standard file han-
           dles, default "open()" layer, and @ARGV by using either the "-C"
           command line switch or the "PERL_UNICODE" environment variable, see
           perlrun for the documentation of the "-C" switch.

Good luck, Taco
-- 
groeten,

Taco

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Re: texutil "malformed UTF-8 character" error
  2004-08-22 12:57 ` Duncan Hothersall
@ 2004-08-22 21:45   ` Hans Hagen Outside
  0 siblings, 0 replies; 5+ messages in thread
From: Hans Hagen Outside @ 2004-08-22 21:45 UTC (permalink / raw)


Duncan Hothersall wrote:

> I wrote:
>
>> Malformed UTF-8 character (unexpected end of string) at 
>> /usr/TeX/texmf/scripts/context/perl/texutil.pl line 1520, <TUI> line 3.
>
> etc.
>
> Forgot to say, the /tui file in question has this at line 3:
>
> c \thisisbytesequence{^^G^^[#}
>
> which certainly does look a bit funny.

can you check your cp8bit.tcx file? it probably isn't 8 bit -) should be: 

0x00   0x00  %
0x01   0x01  %
0x02   0x02  %
0x03   0x03  %
0x04   0x04  %

etc 

Hans 


-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                             | www.pragma-pod.nl
-----------------------------------------------------------------

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2004-08-23 11:59 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <4129C7B2.2010503@capdm.com>
2004-08-23 10:36 ` Re: texutil "malformed UTF-8 character" error Duncan Hothersall
     [not found] <20040823100001.BA8FF1277A@ronja.ntg.nl>
2004-08-23 11:20 ` Duncan Hothersall
2004-08-23 11:59   ` Hans Hagen
     [not found] <20040823024808.07B181278C@ronja.ntg.nl>
2004-08-23  8:03 ` Duncan Hothersall
2004-08-23  8:26   ` Taco Hoekwater
2004-08-23 10:11   ` Hans Hagen
2004-08-22 12:54 Duncan Hothersall
2004-08-22 12:57 ` Duncan Hothersall
2004-08-22 21:45   ` Hans Hagen Outside

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).