Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 1

Qt-interest Archive, November 2006
EUC-JP not found in QTextCodec


Message 1 in thread

Hi

When reading the QTextCodec pages, I see that EUC-JP should be supported.  
Yet, when I inspect the result from QTextCodec::availableCodecs(), there  
is no EUC-JP present. Asking for a codec of this name also returns a null  
pointer.

So what does the "euc-jp is supported" actually mean? That this codec  
should be present by default, or that it's possible to create a textcodec  
that can do these things?

Or is there something wrong on my system? Is there a flag that should be  
enabled? Missing libraries maybe?

Harald

--
 [ signature omitted ] 

Message 2 in thread

Hi,

> Or is there something wrong on my system? Is there a flag that should be 
> enabled? Missing libraries maybe?

Which version of Qt is this? On which platform? How was it built?

Are you running QTextCodec::availableCodecs() on the development 
machine? On a different machine? Note that EUC-JP support can be built 
as a Qt plugin, for example on my Linux workstation the relevant plugin 
is available in the plugins/codecs directory.

--
 [ signature omitted ] 

Message 3 in thread

On Wed, 01 Nov 2006 10:26:05 +0100, Dimitri <dimitri@xxxxxxxxxxxxx> wrote:

> Hi,
>
>> Or is there something wrong on my system? Is there a flag that should  
>> be enabled? Missing libraries maybe?
>
> Which version of Qt is this? On which platform? How was it built?
This is Qt 4.2. I am running it on debian unstable, so I didn't build it.

> Are you running QTextCodec::availableCodecs() on the development  
> machine? On a different machine?
Yes, it's running on my development machine. I've asked some other people  
to do a debug print of availableCodecs() as well, and there's no trace of  
it on their machines either.
By the way, the printout can be found at http://metellius.mine.nu/dicts

> Note that EUC-JP support can be built as a Qt plugin, for example on my  
> Linux workstation the relevant plugin is available in the plugins/codecs  
> directory.
Let's see. It seems I have /usr/lib/qt4/plugins/libqjpcodecs.so.debug.  
Looks promising, but why the debug extension?
And if I need to load this plugin, what would be the safest way to locate  
and load it on differing platforms?

Harald

--
 [ signature omitted ] 

Message 4 in thread

On Wednesday 01 November 2006 21:34, Harald Hvaal wrote:
> On Wed, 01 Nov 2006 10:26:05 +0100, Dimitri <dimitri@xxxxxxxxxxxxx> wrote:
> > Note that EUC-JP support can be built as a Qt plugin, for example on my
> > Linux workstation the relevant plugin is available in the plugins/codecs
> > directory.
>
> Let's see. It seems I have /usr/lib/qt4/plugins/libqjpcodecs.so.debug.
> Looks promising, but why the debug extension?

This file contains the debug symbols generated by the compiler. It is only 
used by e.g. gdb and valgrind.

> And if I need to load this plugin, what would be the safest way to locate
> and load it on differing platforms?

You need to find out how to get a hold of libqjpcodecs.so. This is installed 
as part of the standard Qt installation. Perhaps the .deb you have doesn't 
have the asian codec plugins?

-- 
 [ signature omitted ]