Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

non-unicode in .app.src #57

Open
fisher opened this issue Jul 16, 2015 · 2 comments
Open

non-unicode in .app.src #57

fisher opened this issue Jul 16, 2015 · 2 comments

Comments

@fisher
Copy link

fisher commented Jul 16, 2015

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!

@Licenser
Copy link

+1 to that

@andreineculau
Copy link

duplicate of #35

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants