Files
Alexey Dokuchaev 5baf43483c lang/gnu-apl: try to unbreak the port's build on recent -CURRENT
The base template for std::char_traits<> has been removed in LLVM 19;
specializations are only provided for char, wchar_t, char8_t, char16_t,
and char32_t.  This had severely impacted GNU APL which derived its
UTF8 and UCS string classes from std::basic_string<>.  The author had
made several attempts to convert these classes to use std::vector<>
instead.  Carefully cherry-pick required changes so these fixes could
be applied on top of version 1.8 as trunk had diverged significantly.

Obtained from:	upstream (SVN revisions 1823, 1831, and 1837)
Reported by:	pkg-fallout
2025-06-04 06:51:24 +00:00

12 lines
419 B
C++

--- src/InputFile.hh.orig 2019-06-23 12:39:20 UTC
+++ src/InputFile.hh
@@ -42,7 +42,7 @@ struct InputFile
InputFile(const UTF8_string & _filename, FILE * _file,
bool _test, bool _echo, bool _is_script, LX_mode LX)
: file (_file),
- filename (&_filename[0], _filename.size()),
+ filename (_filename),
test (_test),
echo (_echo),
is_script(_is_script),