summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarat Radchenko <marat@slonopotamus.org>2024-05-12 18:19:53 +0300
committerMarat Radchenko <marat@slonopotamus.org>2024-05-12 18:19:53 +0300
commit2c4ad8991862c86fb8cd3c0513752968b0ca98f0 (patch)
treef5e615c3bf485d82b85d4b512fd703bc1abc22f8
parent933f13bb8e93eb06e366b50b90e86ed15b9e4a3f (diff)
resolves #475 fix crash when running in environments with non-Unicode locale
-rw-r--r--CHANGELOG.adoc4
-rw-r--r--data/styles/_colors.scss2
-rw-r--r--data/styles/_reset.scss2
-rw-r--r--data/styles/epub3-css3-only.scss2
-rw-r--r--data/styles/epub3-fonts.scss2
-rw-r--r--data/styles/epub3.scss2
6 files changed, 14 insertions, 0 deletions
diff --git a/CHANGELOG.adoc b/CHANGELOG.adoc
index b2590f1..06d7eb8 100644
--- a/CHANGELOG.adoc
+++ b/CHANGELOG.adoc
@@ -5,6 +5,10 @@
This document provides a high-level view of the changes to the {project-name} by release.
For a detailed view of what has changed, refer to the {uri-repo}/commits/master[commit history] on GitHub.
+== Unreleased
+
+* fix crash when running in environments with non-Unicode locale (#475)
+
== 2.1.3 (2024-05-12) - @slonopotamus
* fix crash when section title contains inline anchor (#472)
diff --git a/data/styles/_colors.scss b/data/styles/_colors.scss
index ae4fe97..d8bc477 100644
--- a/data/styles/_colors.scss
+++ b/data/styles/_colors.scss
@@ -1,3 +1,5 @@
+@charset "UTF-8";
+
$black: #000000;
$off-black: #101010;
$deep-gray: #202020;
diff --git a/data/styles/_reset.scss b/data/styles/_reset.scss
index 9d3b098..fbed6a2 100644
--- a/data/styles/_reset.scss
+++ b/data/styles/_reset.scss
@@ -1,3 +1,5 @@
+@charset "UTF-8";
+
/* educate older readers about tags introduced in HTML5 */
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section, summary {
display: block;
diff --git a/data/styles/epub3-css3-only.scss b/data/styles/epub3-css3-only.scss
index 7f28258..4ef66ac 100644
--- a/data/styles/epub3-css3-only.scss
+++ b/data/styles/epub3-css3-only.scss
@@ -1,3 +1,5 @@
+@charset "UTF-8";
+
/* Gitden & Namo default to 16px font-size; bump it to 19px (118.75%) */
body.gitden-reader,
body.namo-epub-library {
diff --git a/data/styles/epub3-fonts.scss b/data/styles/epub3-fonts.scss
index 691d826..76d7bd5 100644
--- a/data/styles/epub3-fonts.scss
+++ b/data/styles/epub3-fonts.scss
@@ -1,3 +1,5 @@
+@charset "UTF-8";
+
@font-face {
font-family: "Noto Serif";
font-style: normal;
diff --git a/data/styles/epub3.scss b/data/styles/epub3.scss
index 88540c3..809dad9 100644
--- a/data/styles/epub3.scss
+++ b/data/styles/epub3.scss
@@ -1,3 +1,5 @@
+@charset "UTF-8";
+
@import "reset";
@import "colors";
@import url("epub3-fonts.css");