[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdeextragear-3/kdebluetooth/libqobex/qobex
From:       Mathias Fröhlich <Mathias.Froehlich () web ! de>
Date:       2004-03-30 20:16:36
Message-ID: 20040330201636.7F40999C5 () office ! kde ! org
[Download RAW message or body]

CVS commit by froehlich: 

Fix next bug with non ascii characters.


  M +3 -2      qobexarray.h   1.2
  M +1 -1      qobexheader.cpp   1.4


--- kdeextragear-3/kdebluetooth/libqobex/qobex/qobexheader.cpp  #1.3:1.4
@@ -63,5 +63,5 @@ QObexHeader::QObexHeader(const Q_UINT8 i
       QObexArray tmp( 2 + 2*l );
       for ( Q_ULONG i = 0; i < l; ++i )
-        tmp.qchar( 2*i, data[i].unicode() );
+        tmp.qchar( 2*i, data[i] );
       tmp.qchar( 2*l, 0 );
       mData = tmp;

--- kdeextragear-3/kdebluetooth/libqobex/qobex/qobexarray.h  #1.1:1.2
@@ -54,8 +54,9 @@ public:
 
   inline QChar qchar( Q_ULONG byteoffset ) const {
-    return QChar( uint16( byteoffset ) );
+    return QChar( uint8( byteoffset+1 ), uint8( byteoffset ) );
   }
   inline void qchar( Q_ULONG byteoffset, QChar v ) {
-    uint16( byteoffset, Q_UINT16( v ) );
+    uint8( byteoffset, v.row() );
+    uint8( byteoffset+1, v.cell() );
   }
 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic