Skip to content
This repository has been archived by the owner on Jul 16, 2022. It is now read-only.

Commit

Permalink
Release v2.1.12
Browse files Browse the repository at this point in the history
### Fixed
- appendix: Fix NPE when select wide alternative(#69)
- Fix exception when loading EPWING v2 and later(#68)

### Changed
- Bump actions/github-script@4.1(#66)

Signed-off-by: Hiroshi Miura <miurahr@linux.com>
  • Loading branch information
miurahr committed Aug 27, 2021
1 parent 3905451 commit 02a39d6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
12 changes: 11 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,15 @@ All notable changes to this project will be documented in this file.

## [Unreleased]

## [2.1.12] - 2021-8-27

### Fixed
- appendix: Fix NPE when select wide alternative(#69)
- Fix exception when loading EPWING v2 and later(#68)

### Changed
- Bump actions/github-script@4.1(#66)

## [2.1.11] - 2021-8-23

### Added
Expand Down Expand Up @@ -114,7 +123,8 @@ All notable changes to this project will be documented in this file.
### Added
- Import from eb4j-1.0.5

[Unreleased]: https://github.com/eb4j/eb4j/compare/v2.1.11...HEAD
[Unreleased]: https://github.com/eb4j/eb4j/compare/v2.1.12...HEAD
[2.1.12]: https://github.com/eb4j/eb4j/compare/v2.1.11...v2.1.12
[2.1.11]: https://github.com/eb4j/eb4j/compare/v2.1.10...v2.1.11
[2.1.10]: https://github.com/eb4j/eb4j/compare/v2.1.9...v2.1.10
[2.1.9]: https://github.com/eb4j/eb4j/compare/v2.1.8...v2.1.9
Expand Down
5 changes: 2 additions & 3 deletions src/main/java/io/github/eb4j/io/BookReader.java
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,6 @@ public BookReaderHandler(final BookInputStream bis, final Hook<T> hook, final lo

int init() throws EBException {
bis.seek(pos);
// データの読み込み
b = new byte[BookInputStream.PAGE_SIZE];
len = bis.read(b, 0, b.length);
if (len < 0) {
Expand Down Expand Up @@ -390,7 +389,7 @@ void processIso8859() {
printable = true;
if (_skipCode == -1) {
int ch = b[off] & 0xff;
if ((ch >= 0x20 && ch <= 0x7f) || (ch >= 0xa0 && ch <= 0xff)) {
if (ch >= 0x20 && ch <= 0x7f || ch >= 0xa0) {
// ISO 8859-1
if (!skip) {
hook.append((char)ch);
Expand Down Expand Up @@ -425,7 +424,7 @@ void processDoubleByteChar() {
}
} else if (high > 0xa0 && high < 0xff
&& low > 0x20 && low < 0x7f) {
// 外字
// GAIJI
int code2 = ByteUtil.getInt2(b, off);
if (!skip) {
hook.append(code2);
Expand Down

0 comments on commit 02a39d6

Please sign in to comment.