[Digikam-devel] extragear/graphics/digikam/libs/dmetadata

Achim Bohnet ach at mpe.mpg.de
Fri Mar 31 10:24:01 BST 2006


On Thursday 30 March 2006 12:53, Gilles Caulier wrote:
> SVN commit 524348 by cgilles:
> 
> ascii -> latin1
> 
>  M  +1 -1      dmetadata.cpp  
> 
> 
> --- trunk/extragear/graphics/digikam/libs/dmetadata/dmetadata.cpp #524347:524348
> @@ -555,7 +555,7 @@
>          // In Third we write comments into Iptc.
>  
>          Exiv2::IptcData &iptcData = image->iptcData();
> -        iptcData["Iptc.Application2.Caption"] = comment.ascii();
> +        iptcData["Iptc.Application2.Caption"] = comment.latin1();

I assume all non-european people will not be happy about this.
Is there any reason why we can't use UTF-8?  Or at least store
somewhere which 8bit charset is use?   8 bit char sets are a mess
and should be avoided whereever possible.

Achim
>          image->setIptcData(iptcData);
>      
>          image->writeMetadata();
> 

-- 
  To me vi is Zen.  To use vi is to practice zen. Every command is
  a koan. Profound to the user, unintelligible to the uninitiated.
  You discover truth everytime you use it.
                                      -- reddy at lion.austin.ibm.com



More information about the Digikam-devel mailing list