mirror of https://github.com/apache/poi.git
- Bug 30954 fixed.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@353593 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
9678a33637
commit
5592ae14bf
|
@ -108,6 +108,11 @@ public class MutableProperty extends Property
|
|||
{
|
||||
int length = 0;
|
||||
long variantType = getType();
|
||||
|
||||
/* Ensure that wide strings are written if the codepage is Unicode. */
|
||||
if (codepage == Constants.CP_UNICODE && variantType == Variant.VT_LPSTR)
|
||||
variantType = Variant.VT_LPWSTR;
|
||||
|
||||
length += TypeWriter.writeUIntToStream(out, variantType);
|
||||
length += VariantSupport.write(out, variantType, getValue(), codepage);
|
||||
return length;
|
||||
|
|
Loading…
Reference in New Issue