Encoding of files and help system

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Encoding of files and help system

JuanPi
Hi all,

I found that files encoded with iso-8859-1 trigger an error in
.../m/help/get_first_help_sentence.m

error: regexp: the input string is invalid UTF-8
error: called from
    get_first_help_sentence>first_sentence_plain_text at line 89 column 14
    get_first_help_sentence at line 66 column 22
    doc_cache_create>handle_function at line 96 column 18
    doc_cache_create>create_cache at line 111 column 36
    gen_doc_cache_in_dir>@<anonymous> at line 143 column 16
    doc_cache_create>gen_doc_cache_in_dir at line 144 column 9
    doc_cache_create at line 55 column 12
    install>generate_lookfor_cache at line 810 column 5
    install at line 229 column 7
    pkg at line 475 column 9

Is this accepted behavior, or is it a bug?

--
JuanPi Carbajal
https://goo.gl/ayiJzi

-----
“An article about computational result is advertising, not
scholarship. The actual scholarship is the full software environment,
code and data, that produced  the  result.”
- Buckheit and Donoho

Reply | Threaded
Open this post in threaded view
|

Re: Encoding of files and help system

mmuetzel
Am 2. Dezember 2019 um 01:52 Uhr schrieb "JuanPi":

> Hi all,
>
> I found that files encoded with iso-8859-1 trigger an error in
> .../m/help/get_first_help_sentence.m
>
> error: regexp: the input string is invalid UTF-8
> error: called from
>     get_first_help_sentence>first_sentence_plain_text at line 89 column 14
>     get_first_help_sentence at line 66 column 22
>     doc_cache_create>handle_function at line 96 column 18
>     doc_cache_create>create_cache at line 111 column 36
>     gen_doc_cache_in_dir>@<anonymous> at line 143 column 16
>     doc_cache_create>gen_doc_cache_in_dir at line 144 column 9
>     doc_cache_create at line 55 column 12
>     install>generate_lookfor_cache at line 810 column 5
>     install at line 229 column 7
>     pkg at line 475 column 9
>
> Is this accepted behavior, or is it a bug?

Thanks for bringing this up. That error should probably be avoided somehow.

Could you please open a bug report for that issue (preferably with an example that triggers the error)?

Markus