Thanks to visit codestin.com
Credit goes to github.com

Skip to content

non-unicode in .app.src #57

@fisher

Description

@fisher

non-unicode character in author's name in src/lhttpc.app.src caused this error:

2 sofa% make 
./rebar compile
ERROR: Failed to extract name from /home/fisher/prj/erl/lhttpc/src/lhttpc.app.src: {27,
                                                                                    file_io_server,
                                                                                    invalid_unicode}
Makefile:13: recipe for target 'compile' failed
make: *** [compile] Error 1

after brutal change in beautiful scandinavian name it compiles as intended:

diff --git a/src/lhttpc.app.src b/src/lhttpc.app.src
index 1c3d93b..52533da 100644
--- a/src/lhttpc.app.src
+++ b/src/lhttpc.app.src
@@ -24,7 +24,7 @@
 %%% ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 %%% ----------------------------------------------------------------------------

-%%% @author Oscar Hellstr<F6>m <[email protected]>
+%%% @author Oscar Hellstrm <[email protected]>
 %%% @doc This is the specification for the lhttpc application.
 %%% @end
 {application, lhttpc,
(END)

but with a lot of warnings and sugestions:

0 sofa% make
./rebar compile
==> lhttpc (compile)
src/lhttpc.erl:28: Warning: Non-UTF-8 character(s) detected, but no encoding declared. Encode the file in UTF-8 or add "%% coding: latin-1" at the beginning of the file. Retrying with latin-1 encoding.
Compiled src/lhttpc.erl
src/lhttpc_lib.erl:29: Warning: Non-UTF-8 character(s) detected, but no encoding declared. Encode the file in UTF-8 or add "%% coding: latin-1" at the beginning of the file. Retrying with latin-1 encoding.
Compiled src/lhttpc_lib.erl
src/lhttpc_manager.erl:28: Warning: Non-UTF-8 character(s) detected, but no encoding declared. Encode the file in UTF-8 or add "%% coding: latin-1" at the beginning of the file. Retrying with latin-1 encoding.
Compiled src/lhttpc_manager.erl
src/lhttpc_sup.erl:28: Warning: Non-UTF-8 character(s) detected, but no encoding declared. Encode the file in UTF-8 or add "%% coding: latin-1" at the beginning of the file. Retrying with latin-1 encoding.
Compiled src/lhttpc_sup.erl
src/lhttpc_sock.erl:29: Warning: Non-UTF-8 character(s) detected, but no encoding declared. Encode the file in UTF-8 or add "%% coding: latin-1" at the beginning of the file. Retrying with latin-1 encoding.
Compiled src/lhttpc_sock.erl
src/lhttpc_client.erl:29: Warning: Non-UTF-8 character(s) detected, but no encoding declared. Encode the file in UTF-8 or add "%% coding: latin-1" at the beginning of the file. Retrying with latin-1 encoding.
Compiled src/lhttpc_client.erl
./rebar doc
==> lhttpc (doc)

Thanks for your time and good luck!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions