lukeme / gobible

Automatically exported from code.google.com/p/gobible
1 stars 0 forks source link

Bug related to exactly what ends up in the MANIFEST.MF file #146

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Some Go Bibles cannot be successfully installed in some phone models.

They work in a Java ME emulator without error.

The bug is related to something in the internal MANIFEST.MF file.

This file is supposed to be encoded as UTF-8.

Some files with longer description lines in the Info: line are where the bug 
seems to reside. Particularly affected are Go Bible apps that contain non-ANSI 
characters in the description, maybe at certain places in the line.

MANIFEST.MF always line breaks at column 80, so one avenue of investigation is 
whether the dumb line break method can split a multi-byte Unicode codepoint.

One recent report of the issue is in the Go Bible Forum. Login and search for 
Kyrgyz. The same symptom would explain why my own rebuild of the Kitab Al Hayat 
Go Bible would not install, after I added some Arabic text to the Info: line.

Original issue reported on code.google.com by DFH...@gmail.com on 28 Feb 2011 at 4:07

GoogleCodeExporter commented 8 years ago
It is definitely the dumb line break at column 80 measured in bytes rather than 
characters that is the root cause.

Go Bible Creator needs fixing.

Original comment by DFH...@gmail.com on 28 Feb 2011 at 9:33

GoogleCodeExporter commented 8 years ago
GoBibleCreator 2.4.1 Notes 
March 4, 2011

GoBibleCreator updated to fix to a very old bug only recently discovered.
 BUG FIX:
 - To make the internal manifest, a call to java.util.jar is replaced by code from a GNU Classpath, which is smarter than Oracle's. MyManifest.java inserts the 72 column line break[s] by counting Unicode characters rather than bytes. The bug was that multibyte codepoints were sometimes split, thus making a Go Bible application invalid such that it would not install.

Original comment by DFH...@gmail.com on 4 Mar 2011 at 5:14

GoogleCodeExporter commented 8 years ago
Our friends from the KAH project have reported, "I need to inform you that the 
application is working perfectly!"

Original comment by DFH...@gmail.com on 9 Mar 2011 at 11:27