head 1.4; access; symbols pkgsrc-2026Q1:1.4.0.2 pkgsrc-2026Q1-base:1.4 pkgsrc-2025Q4:1.3.0.14 pkgsrc-2025Q4-base:1.3 pkgsrc-2025Q3:1.3.0.12 pkgsrc-2025Q3-base:1.3 pkgsrc-2025Q2:1.3.0.10 pkgsrc-2025Q2-base:1.3 pkgsrc-2025Q1:1.3.0.8 pkgsrc-2025Q1-base:1.3 pkgsrc-2024Q4:1.3.0.6 pkgsrc-2024Q4-base:1.3 pkgsrc-2024Q3:1.3.0.4 pkgsrc-2024Q3-base:1.3 pkgsrc-2024Q2:1.3.0.2 pkgsrc-2024Q2-base:1.3 pkgsrc-2024Q1:1.2.0.2 pkgsrc-2024Q1-base:1.2 pkgsrc-2023Q4:1.1.0.4 pkgsrc-2023Q4-base:1.1 pkgsrc-2023Q3:1.1.0.2 pkgsrc-2023Q3-base:1.1; locks; strict; comment @// @; 1.4 date 2026.02.20.08.46.41; author pin; state Exp; branches; next 1.3; commitid jXiVsFmiCJCeQ5vG; 1.3 date 2024.05.03.09.16.52; author pin; state Exp; branches; next 1.2; commitid nS6xunInhCfV9x8F; 1.2 date 2024.01.16.21.26.03; author pin; state Exp; branches; next 1.1; commitid dGLldyTwXQXiFIUE; 1.1 date 2023.09.15.16.45.01; author nros; state Exp; branches; next ; commitid 0NwyrUMtT8o34TEE; desc @@ 1.4 log @editors/focuswriter: update to 1.9.0 * FIXED: Did not play sound effects for smart quotes. * Added keyboard shortcuts for headings. * Clears headings when pressing enter. * Replaced shadowed variable names. * Switched to KDSingleApplication. * Updated link to translations. * Translation updates: Swedish. @ text @$NetBSD$ NetBSD 9 uses const in the second argument to iconv. --- src/text_codec.cpp.orig 2026-02-19 12:34:02.786107287 +0000 +++ src/text_codec.cpp @@@@ -14,6 +14,13 @@@@ #include +#if defined(__NetBSD__) +#include +#if !(__NetBSD_Prereq__(9,99,18)) +#define __NETBSD_ICONV_CONST__ 1 +#endif +#endif + //----------------------------------------------------------------------------- namespace @@@@ -79,7 +86,7 @@@@ QByteArray TextCodecIconv::fromUnicode(const QString& QByteArray TextCodecIconv::fromUnicode(const QString& input) { QByteArray in = TextCodec::fromUnicode(input); -#ifndef __OS2__ +#if !(defined(__OS2__) || defined(__NETBSD_ICONV_CONST__)) // POSIX requires the source to not be const, even though it does not modify it char* source = in.data(); #else @@@@ -128,7 +135,7 @@@@ QString TextCodecIconv::toUnicode(const QByteArray& in QString TextCodecIconv::toUnicode(const QByteArray& input) { -#ifndef __OS2__ +#if !(defined(__OS2__) || defined(__NETBSD_ICONV_CONST__)) // POSIX requires the source to not be const, even though it does not modify it char* source = const_cast(input.data()); #else @ 1.3 log @editors/focuswriter: update to 1.8.7 1.8.7 ----- * FIXED: Did not keep line spacing when pasting plain text. * Replaced deprecated code. * Translation updates: Swedish. @ text @d5 1 a5 1 --- src/text_codec.cpp.orig 2024-05-03 08:38:17.190099116 +0000 d21 1 a21 1 @@@@ -79,7 +86,7 @@@@ TextCodecIconv::~TextCodecIconv() d30 1 a30 1 @@@@ -128,7 +135,7 @@@@ QByteArray TextCodecIconv::fromUnicode(c @ 1.2 log @editors/focuswriter: update to 1.8.6 Bug Fixes FIXED: Always incremented number for imported themes FIXED: Unable to update contents of theme background image FIXED: Modifying themes sometimes removed backgrounds FIXED: Decompression failed in Haiku Code Improvements Added shortcuts for selecting by paragraph Replaced deprecated code Updated Unicode symbols database Updated Windows dictionaries Translation Updates Portuguese, Portuguese (Brazil), Swedish @ text @d5 1 a5 1 --- src/text_codec.cpp.orig 2024-01-16 21:02:09.859731226 +0000 @ 1.1 log @focuswriter: fix build on NetBSD 9 @ text @d3 1 a3 1 * NetBSD 9 uses const in the second argument to iconv d5 1 a5 1 --- src/text_codec.cpp.orig 2023-06-27 13:32:39.000000000 +0000 d7 1 a7 1 @@@@ -14,6 +14,15 @@@@ a17 2 + + d21 1 a21 1 @@@@ -79,7 +88,7 @@@@ TextCodecIconv::~TextCodecIconv() d30 1 a30 1 @@@@ -128,7 +137,7 @@@@ QByteArray TextCodecIconv::fromUnicode(c @