gnokii-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Some minor fixes for gnokii


From: Jan de Cuveland
Subject: Re: Some minor fixes for gnokii
Date: Sun, 3 Nov 2002 14:27:32 +0100
User-agent: Mutt/1.3.22.1i

On Wed, Oct 30, 2002, Pawel Kot wrote:

> Okay. It's clear then. But it surprises me. I use iso-8859-2 and also use
> characters above 127 code. And it works perfectly. My understanding of
> mbtowc() was that even single-byte characters (like these from iso-8859-1
> and iso-8859-2) can be used there as the multibyte characters. And correct
> locale setting ensures that we have always correct transformation.
> 
> If it works as you said mbtowc() and wctomb() are not suitable for us.
> 
> > If I (other way round) enter a name into my 6510 that includes some
> > special characters, and then try to read the data, gnokii calls wctomb()
> > for each character, which again fails for special characters.
> 
> Could you please send any dumps with such incorrect transformations?

Yes, of course. I entered a test entry into my phone, which reads
"Test entry [äöü]", i.e. between '[' and ']' there are three German
Umlaute.

Now I'm reading this entry with gnokii. Since I use the patched version
(*dest modified), the final result is correct, but you can still see how
wctomb() fails. In the unpatched version it would have returned '?'
instead.

Thanks for all your help!

Jan de Cuveland

-----------------------------------------------------------------

$ locale

LANG=de_DE.ISO-8859-1
LC_CTYPE="de_DE.ISO-8859-1"
LC_NUMERIC="de_DE.ISO-8859-1"
LC_TIME="de_DE.ISO-8859-1"
LC_COLLATE="de_DE.ISO-8859-1"
LC_MONETARY="de_DE.ISO-8859-1"
LC_MESSAGES="de_DE.ISO-8859-1"
LC_PAPER="de_DE.ISO-8859-1"
LC_NAME="de_DE.ISO-8859-1"
LC_ADDRESS="de_DE.ISO-8859-1"
LC_TELEPHONE="de_DE.ISO-8859-1"
LC_MEASUREMENT="de_DE.ISO-8859-1"
LC_IDENTIFICATION="de_DE.ISO-8859-1"
LC_ALL=

$ gnokii --getphonebook ME 1 -r

GNOKII Version 0.5.0pre
Opened configuration file /home/jan/.gnokiirc
Added new section global
Adding key/value port//dev/ircomm0
Adding key/value model/6510
Adding key/value initlength/default
Adding key/value connection/irda
Adding key/value bindir//usr/local/sbin/
Adding key/value use_locking/no
Connecting
Serial device: opening device /dev/ircomm0
Nokia 6510      d5cc0000
Getting model...
Message sent: 0x1b / 0x0006
00 01 00 07 01 00                               |                 
Message received: 0x1b / 0x002e
01 2b 00 08 00 01 58 29 00 22 56 20 30 34 2e 31 |  +    X) "V 04.1
32 0a 32 38 2d 30 38 2d 30 32 0a 4e 50 4d 2d 39 | 2 28-08-02 NPM-9
0a 28 63 29 20 4e 4d 50 2e 0a 43 00 00 00       |  (c) NMP. C     
Received message type 1b
model length: 5
Received model NPM-9
Reading phonebook location (1)
Message sent: 0x03 / 0x0012
00 01 00 07 01 01 00 01 02 05 00 00 00 00 00 01 |                 
00 00                                           |                 
Message received: 0x03 / 0x005a
01 45 00 08 00 01 01 00 00 10 00 05 00 01 00 00 |  E              
00 00 00 00 00 03 07 00 00 28 01 22 00 54 00 65 |          ( " T e
00 73 00 74 00 20 00 65 00 6e 00 74 00 72 00 79 |  s t   e n t r y
00 20 00 5b 00 e4 00 f6 00 fc 00 5d 00 00 1e 00 |    [       ]    
00 08 02 06 00 00 0b 00 00 14 03 03 00 00 00 08 |                 
00 31 00 32 00 33 00 00 00 00                   |  1 2 3          
Received message type 03
Received phonebook info
Blockstart: 7
Error calling wctomb!
Error calling wctomb!
Error calling wctomb!
   Name: Test entry [äöü]
Blockstart: 30
   Group: 5
Blockstart: 11
   Type: 3 (03)
   Number: 123
Test entry [äöü];123;ME;1;5;11;3;3;123
Serial device: closing device





reply via email to

[Prev in Thread] Current Thread [Next in Thread]