From e49085044900d0540aa70025149c90fcbfc1d81c6eca0c4509b2831b78426d0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Linus=20Bj=C3=B6rnstam?= Date: Sun, 22 Nov 2026 10:02:39 +0100 Subject: [PATCH 1/3] bjomarks 0.2.0, with bjosodium 0.2.0 Co-Authored-By: Claude Opus 5.5 --- bjo.lock | 8 ++++---- manifest.bjodat | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/bjo.lock b/bjo.lock index d92f0c1..143f3a0 100644 --- a/bjo.lock +++ b/bjo.lock @@ -3,9 +3,9 @@ (package (name (bjogui)) (version "0.1.0") (source (git (url "https://rikspucko.koketteriet.se/bjoli/bjogui"))) (commit "c8a121030e666044766e523aec8cf42f02343f0d645e1b42316f6607374cef23")) - (package (name (bjomarks)) (version "0.1.0") + (package (name (bjomarks)) (version "0.2.0") (source (git (url "https://rikspucko.koketteriet.se/bjoli/bjomarks"))) - (commit "a4b2aaf94e73f933be1a3d96ad7c6351060dc065999af937e3692925b3578ea3")) - (package (name (bjosodium)) (version "0.1.0") + (commit "6fc668e9082ca0065dc795fbb865d17cdd9e2092626f093caf4ec95728224ad6")) + (package (name (bjosodium)) (version "0.2.0") (source (git (url "https://rikspucko.koketteriet.se/bjoli/bjosodium"))) - (commit "911f4bcc4676ca6393f8eb43286fdddd69cf6b5665aca0770ceaf869fb73767b")))) + (commit "2be75d9b22691b44d571ef4fa8516390ca9a47a4d64a3d92b39d6f9878627b13")))) diff --git a/manifest.bjodat b/manifest.bjodat index 10bf584..f4e73a9 100644 --- a/manifest.bjodat +++ b/manifest.bjodat @@ -17,7 +17,7 @@ (depends (package (name (bjomarks)) - (version (version-at-least "0.1.0")) + (version (version-at-least "0.2.0")) (source (git (url "https://rikspucko.koketteriet.se/bjoli/bjomarks")))) (package (name (bjogui)) (version (version-at-least "0.1.0")) From e1ed969d301cab7f1b992d270a6b62c0840f2bfe7608e6b7a4de360c2f38498e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Linus=20Bj=C3=B6rnstam?= Date: Sun, 22 Nov 2026 10:02:39 +0100 Subject: [PATCH 2/3] 0.1.1 Co-Authored-By: Claude Opus 5.5 --- manifest.bjodat | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifest.bjodat b/manifest.bjodat index f4e73a9..c819eb6 100644 --- a/manifest.bjodat +++ b/manifest.bjodat @@ -1,6 +1,6 @@ (package (name (bjomarks-android)) - (version "0.1.0") + (version "0.1.1") (description "Bookmarks on an Android phone: a bjomarks vault in a folder that a file syncer shares, and the Share menu.") (license "MPL-2.0") From 698d87ce312b13fb735c0bdc0d573474186077dc63ca1fdf637c079c9ff7f374 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Linus=20Bj=C3=B6rnstam?= Date: Mon, 23 Nov 2026 14:09:09 +0100 Subject: [PATCH 3/3] Follow bytes->string returning a Result - A backup file that is not UTF-8 is an error that says so, through BackupRead, instead of an exception. - bjomarks is at least 0.2.1, which follows the same change. Co-Authored-By: Claude Opus 5.5 --- bjo.lock | 4 ++-- manifest.bjodat | 2 +- src/app.bjo | 4 +++- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/bjo.lock b/bjo.lock index 143f3a0..f2ab8b7 100644 --- a/bjo.lock +++ b/bjo.lock @@ -3,9 +3,9 @@ (package (name (bjogui)) (version "0.1.0") (source (git (url "https://rikspucko.koketteriet.se/bjoli/bjogui"))) (commit "c8a121030e666044766e523aec8cf42f02343f0d645e1b42316f6607374cef23")) - (package (name (bjomarks)) (version "0.2.0") + (package (name (bjomarks)) (version "0.2.1") (source (git (url "https://rikspucko.koketteriet.se/bjoli/bjomarks"))) - (commit "6fc668e9082ca0065dc795fbb865d17cdd9e2092626f093caf4ec95728224ad6")) + (commit "fd4c0f8bb019761ea7ac58644fe43d32134f46ef0aa4a85bf50915183709d779")) (package (name (bjosodium)) (version "0.2.0") (source (git (url "https://rikspucko.koketteriet.se/bjoli/bjosodium"))) (commit "2be75d9b22691b44d571ef4fa8516390ca9a47a4d64a3d92b39d6f9878627b13")))) diff --git a/manifest.bjodat b/manifest.bjodat index c819eb6..9425a49 100644 --- a/manifest.bjodat +++ b/manifest.bjodat @@ -17,7 +17,7 @@ (depends (package (name (bjomarks)) - (version (version-at-least "0.2.0")) + (version (version-at-least "0.2.1")) (source (git (url "https://rikspucko.koketteriet.se/bjoli/bjomarks")))) (package (name (bjogui)) (version (version-at-least "0.1.0")) diff --git a/src/app.bjo b/src/app.bjo index af286e1..b0a5255 100644 --- a/src/app.bjo +++ b/src/app.bjo @@ -690,7 +690,9 @@ ((Some f) (def name (stored-file-name f)) (next (record-set m (note (str "Reading " name "…"))) - (wrap (blocking (fun () (read-firefox-backup (bytes->string (stored-file-bytes f))))) + (wrap (blocking (fun () (match (bytes->string (stored-file-bytes f)) + ((Ok text) (read-firefox-backup text)) + ((Err e) (Err (str "the file is not UTF-8: " (decode-error-message e))))))) (fun (r) (BackupRead name r))))) (None (next m))))