head 1.1; access; symbols pkgsrc-2026Q1:1.1.0.2 pkgsrc-2026Q1-base:1.1; locks; strict; comment @// @; 1.1 date 2026.01.26.19.43.32; author nia; state Exp; branches; next ; commitid 6roRUluAf1hphWrG; desc @@ 1.1 log @jstrings: Initial import. A tool for finding JIS encoded Japanese text in binary data. Verified to build on NetBSD, FreeBSD, OpenBSD, macOS, Linux. @ text @$NetBSD$ NetBSD does not recognize SHIFT-JIS as a valid encoding without the underscore. --- inc/enc_shiftjis.hpp.orig 2026-01-26 19:15:04.811539545 +0000 +++ inc/enc_shiftjis.hpp @@@@ -18,7 +18,11 @@@@ class shiftjis_validator : public jis_validator (priva class shiftjis_validator : public jis_validator { private: +#ifdef __NetBSD__ + constexpr static char const * m_iconvcode = "SHIFT_JIS"; +#else constexpr static char const * m_iconvcode = "SHIFT-JIS"; +#endif public: shiftjis_validator() : @@@@ -29,4 +33,4 @@@@ class shiftjis_validator : public jis_validator (priva }; } // namespace motoi -#endif \ No newline at end of file +#endif @