fpexif: Fix encoding of IPTC string tags.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6831 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
parent
0105538d1e
commit
eb43c124e5
@ -75,11 +75,6 @@ type
|
||||
constructor Create(ABigEndian: Boolean);
|
||||
destructor Destroy; override;
|
||||
|
||||
{
|
||||
function AddMakerNoteTag(AIndex: Integer; ATagID: TTagID; ATagName: String;
|
||||
AData: TBytes; ACount: Integer; ALkUpTbl: String = '';
|
||||
AFormatStr: String = ''; ATagType: TTagType = ttUInt8): Integer; overload;
|
||||
}
|
||||
function AddMakerNoteTag(AIndex: Integer; ATagID: TTagID; ATagName: String;
|
||||
ADataValue: Integer; ALkupTbl: String = ''; AFormatStr: String = '';
|
||||
ATagType: TTagType = ttUInt16): Integer; overload;
|
||||
|
@ -86,7 +86,7 @@ type
|
||||
implementation
|
||||
|
||||
uses
|
||||
fpeStrConsts;
|
||||
lConvEncoding, fpeStrConsts;
|
||||
|
||||
type
|
||||
// http://search.cpan.org/dist/Image-MetaData-JPEG/lib/Image/MetaData/JPEG/Structures.pod#Structure_of_an_IPTC_data_block
|
||||
@ -161,6 +161,7 @@ begin
|
||||
{$IFDEF FPC}
|
||||
SetLength(s, len);
|
||||
Move(ABuffer[AStart], s[1], len);
|
||||
s := ConvertEncoding(s, GuessEncoding(s), encodingUTF8);
|
||||
{$ELSE}
|
||||
SetLength(sa,len);
|
||||
Move(ABuffer[AStart], sa[1], len);
|
||||
|
Loading…
Reference in New Issue
Block a user