Yeah it's probably fine to close.
FWIW, I have code on top of my encoding PRs for opening binary files, but
that's limited to the loading and encoding management, not adapting all code to
work with NULs. Yet, search seems to work fairly well @elextr đŸ˜‰
Anyway, I'm not sure we're gonna merge it,
I propose to close this, it's highly unlikely Geany will ever become a PDF
editor. Or is there any reason in keeping this open?
--
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/3677#issuecomment-1864422905
You are receiving this because you are subscrib
So to summarise, for PDF files use a PDF editor, for image files use an image
editor, for pure text files use Geany.
--
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/3677#issuecomment-1798845230
You are receiving this because you are subscribed to this
Sure, it won't be a convenient experience, and if the non-binary data is not
single-byte encoded it's unlikely to be really usable as even
stripping/replacing the NULs will not allow to convert to that multi-byte
encoding if it has stricter rules than "any byte goes anywhere" (like UTF-8).
Anyw
Yes, but image data is very likely to have NUL bytes which those encodings
convert to NULs IIRC. My point is that the text in the PDF will be convertable
by some encoding just fine, but embedded images run through the same converter
will get garbage and likely NULs. The iconv converters don't
Yes, any ISO-8859-* stream with no NULs is convertible to UTF-8 with no NULs.
Or am I missing something? I don't think any of ISO-8859-* has things Unicode
cannot represent :)
--
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/3677#issuecomment-1798767
Ok, ... convertable to UTF-8 with no NULs ...
Picky picky mumble mumble... :-)
--
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/3677#issuecomment-1798756647
You are receiving this because you are subscribed to this thread.
Message ID:
> Still the image data may not be convertible to UTF-8, its just a sequence of
> bytes, not any encoding.
UTF-8 no, but many encodings are actually "a sequence of bytes", which is the
reason why choosing the right one when opening is so hard (basically, it's a
guessing game if you don't know al
> base64 then, the solution to just about anything?
:-)
Well, base 64 would be a good solution, if iconv encoding converters recognised
the image data inside the PDF and converted it to base 64 instead of just
crapping out when the random bytes in the image do not make a valid encoding.
(Imag
base64 then, the solution to just about anything?
--
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/3677#issuecomment-1797890095
You are receiving this because you are subscribed to this thread.
Message ID:
Still the image data may not be convertible to UTF-8, its just a sequence of
bytes, not any encoding.
--
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/3677#issuecomment-1797086716
You are receiving this because you are subscribed to this thread.
Messag
> Any viable workaround ?
Viable I don't know, but I heard some people working around NUL bytes by
replacing those with a placeholder and back after edition. Something like `sed
-i 's/\0/%%NUL%%/g' file && geany file && sed -i 's/%%NUL%%/\x00/g/'` or along
the idea. Something like that should w
Some points:
1. Geany will not load any file which contains NUL bytes after converting the
encoding to UTF-8
2. There is no guaranteed way to detect encoding of a file
3. PDFs can contain image data which can contain NUL bytes and is not text that
can be converted to UTF-8
4. The message "File '
There's message:
"File 'some.PDF' does not look like a text file or the file encoding not
supported"
I thought till now geany is capable of opening all code pages
Any viable workaround ?
--
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/3677#issuecomme
My guess would be a problem with encoding. Did you check the status tab in the
bottom panel? It should tell you if there is some issue with the file being
opened.
--
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/3677#issuecomment-1793807502
You are rec
15 matches
Mail list logo