You've already forked lazarus-ccr
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:
@@ -75,11 +75,6 @@ type
|
|||||||
constructor Create(ABigEndian: Boolean);
|
constructor Create(ABigEndian: Boolean);
|
||||||
destructor Destroy; override;
|
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;
|
function AddMakerNoteTag(AIndex: Integer; ATagID: TTagID; ATagName: String;
|
||||||
ADataValue: Integer; ALkupTbl: String = ''; AFormatStr: String = '';
|
ADataValue: Integer; ALkupTbl: String = ''; AFormatStr: String = '';
|
||||||
ATagType: TTagType = ttUInt16): Integer; overload;
|
ATagType: TTagType = ttUInt16): Integer; overload;
|
||||||
|
@@ -86,7 +86,7 @@ type
|
|||||||
implementation
|
implementation
|
||||||
|
|
||||||
uses
|
uses
|
||||||
fpeStrConsts;
|
lConvEncoding, fpeStrConsts;
|
||||||
|
|
||||||
type
|
type
|
||||||
// http://search.cpan.org/dist/Image-MetaData-JPEG/lib/Image/MetaData/JPEG/Structures.pod#Structure_of_an_IPTC_data_block
|
// 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}
|
{$IFDEF FPC}
|
||||||
SetLength(s, len);
|
SetLength(s, len);
|
||||||
Move(ABuffer[AStart], s[1], len);
|
Move(ABuffer[AStart], s[1], len);
|
||||||
|
s := ConvertEncoding(s, GuessEncoding(s), encodingUTF8);
|
||||||
{$ELSE}
|
{$ELSE}
|
||||||
SetLength(sa,len);
|
SetLength(sa,len);
|
||||||
Move(ABuffer[AStart], sa[1], len);
|
Move(ABuffer[AStart], sa[1], len);
|
||||||
|
Reference in New Issue
Block a user