On Fri, Jul 19, 2013 at 9:38 PM, Fernando de Oliveira
<[email protected]> wrote:
> Problem: no root certificates generated for some non-english locales.
>
> In this message, first, I describe the problem, then the solution. Many
> users may have the bug, so a test is necessary. This test is described
> below.
I will need to spend some time studying this. My current setup is better
then a tablet, but not as good as my normal setup. I hope Google sends
this as plain text as I have requested. It also may not have newlines.
I'll do that manually.
Also, when I reply I can only see about 20 lines at a time. I'm used to being
able to see 50 or so. :(
> First, I give my locale:
>
> $ echo $LANG
> pt_BR.utf8
That's probably why I don't see that. I often don't have any LANG setting,
but if I do, it would be en_US.utf8.
> #1: ObjectId: 2.5.29.19 Criticality=true
> ...
> Confiar neste certificado? [não]: Resposta errada; tente novamente
> Confiar neste certificado? [não]: erro de keytool:
> java.lang.NullPointerException
> ...
>
>
> This is, I think, the problem: "não" instead of "no" and "sim", instead
> of "yes".
>
> Solution? Use LC_ALL=C to run the script or, inside the script, write
>
> echo yes | LC_ALL=C "${KEYTOOL}" -import -alias `basename "${cert}"` \
> -keystore "${OUTFILE}" -storepass 'changeit' -file "${tempfile}"
> First, correct the patch to run the most iportant command in locale C:
>
> sed 's/echo yes | /echo yes | env LC_ALL=C /' \
> icedtea-2.4.1-add_cacerts-1.patch > icedtea-2.4.1-add_cacerts-2.patch
OK, so we fix the patch.
> 5. Difference Between Original And New Scripts
>
> $ diff -Naur mkcacerts-blfs-1.0.7.40-2.4.1.sh
> mkcacerts-new-1.0.7.40-2.4.1.sh
> --- mkcacerts-blfs-1.0.7.40-2.4.1.sh 2013-07-19 07:46:41.904926806 -0300
> +++ mkcacerts-new-1.0.7.40-2.4.1.sh 2013-07-19 09:19:42.517727563 -0300
> @@ -196,7 +196,7 @@
> - echo yes | "${KEYTOOL}" -import -alias `basename "${cert}"` -keystore \
> + echo yes | env LC_ALL=C "${KEYTOOL}" -import -alias `basename
> "${cert}"` -keystore \
I'm not sure where this change goes. Is it not the same as the patch?
-- Bruce
--
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page