Am 14.10.2015 um 13:08 schrieb dean:
> On 10/11/15 22:27, Markus Koschany wrote:
>> On Sun, 11 Oct 2015 12:48:45 +1000 dean <deanshann...@gmail.com
> 
> Hi Markus and list,
> 
>>
>> I think there is even a simpler way to change the source encoding. In
>> Debian we normally use an ant.properties file for that.
> 
> bouncycastle is already using a bc-build.properties Would it be
> appropriate to use that?

Hi dean,

that would probably work too. However you have to patch that file again
because it is part of the upstream sources whereas an ant.properties
file is part of Debian's packaging and can just be placed into the
debian directory.

>> A line like encoding=UTF-8 or compile.encoding=UTF-8 should do the 
>> trick. It should be even possible to drop the 01_build.patch but I 
>> haven't tested this yet.
>>
> 
> I originally looked at something like that but I could not make it work.
> I think something is setting file.encoding -> ANSI_X3.4-1968
> but I cannot find out where. I don't know a lot about bouncycastle but I
> believe they use different encodings in their source for a reason.
> 
> Any suggestions? I'm out of my league here.

ANSI is the default encoding for your Java platform and if you want to
have a specific encoding that is identical on all platforms you have to
tell Ant about it, for instance you can use ant -Dfile.encoding=UTF-8 on
the command line or you can use the already mentioned ant.properties
file. I think we will fix this with the next revision of bouncycastle
one way or the other.

> ps. I CC'ed this to the list instead of the bug to keep the noise down
> on the bug report while troubleshooting, I hope this was the right way to go

It's completely fine to reply to the bug report. We have a dedicated bug
mailing list too and all your e-mails to the bug report are
automatically forwarded to it. Keeping the bug report in CC also ensures
that other interested parties can follow the conversation without having
to subscribe to a dedicated mailing list like debian-java. Therefore I
suggest to continue the discussion by only writing to the bug report.

Cheers,

Markus




Attachment: signature.asc
Description: OpenPGP digital signature

__
This is the maintainer address of Debian's Java team
<http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-java-maintainers>. 
Please use
debian-j...@lists.debian.org for discussions and questions.

Reply via email to