[fpc-devel] lazarus bug report + fix: Utf8ToUnicode doesn't work correctly
danny.milo at gmx.net
Wed May 4 18:58:32 CEST 2005
Am Mittwoch, den 04.05.2005, 12:49 +0200 schrieb Michael Van Canneyt:
> On Wed, 4 May 2005, Jonas Maebe wrote:
> > On 4 mei 2005, at 12:04, Michael Van Canneyt wrote:
> > > > It contains a fixed version of the Utf8ToUnicode function. Since it
> > > > is part of
> > > > the rtl, I close this lazarus issue and send you this message. I did
> > > > not test
> > > > the fixed version.
> > >
> > > The files in the zip file are not usable; They're in some unicode format,
> > > which
> > > I can't use nor check on Linux.
> > They're plain UTF-8. I know for a fact there are editors under Linux which
> > support that (at least emacs does, and it would surprise me immensely if vim
> > doesn't). Anyway, here's the plain ascii version of the "-fixed" file.
> I already got it from Vincent and applied the patch. But:
> - diff doesn't grok unicode.
diff doesn't need to, its line-based anyways. If you mean the displaying
of unicode, check widechar xterm compilation option (uxterm) [or for
text console, the unicode_start script and loadkeys -u].
> - "joe" doesn't grok it either.
joe 3 does (joe 3 rocks in other ways too :))
> - "kate" & "kwrite" - no grok.
> - PFE (Windows) doesn't grok it either.
> - Apparently vim converts to plain ascii before editing.
> - Last but not least: The FPC Compiler also doesn't grok unicode :-)
I didnt notice it doesnt yet ... but maybe the char<->character
weirdness appears with utf-8 (which cannot be fixed except by fixing the
language definition itself).
> So much for unicode :/
It used to be a hell of a lot of work to set up unicode to work with
linux, but nowadays distros support it out of the box :) (except
gentoo :P although I have a patch with all the neccessary bits already
done open with them)
What distro do you use ?
www.keyserver.net key id A334AEA6
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 189 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
More information about the fpc-devel