<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:12pt"><div><span>Yep. I was using R17. After switching to R16, everything works fine.</span></div><div class="yahoo_quoted" style="display: block;"> <div style="font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12pt;"> <div style="font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12pt;"> <div dir="ltr"> <font size="2" face="Arial"> alamo <ykh107@gmail.com> 于 2014年4月13日, 星期日, 8:41 下午 写道:<br> </font> </div> <div class="y_msg_container"><div id="yiv5653257205"><div><div dir="ltr">Compile with <span style="font-size:13px;line-height:18px;">R16B03</span><div class="yiv5653257205p1"><br clear="none"></div><br clear="none">On Thursday, 10 April 2014 23:41:46
UTC-7, nickel chen wrote:<blockquote class="yiv5653257205gmail_quote" style="margin:0;margin-left:0.8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div style="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12pt;"><div><span>anyone information, please? i'm stucked at this problem.</span></div><div style="display:block;"> <div style="font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12pt;"> <div style="font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12pt;"> <div dir="ltr"> <font size="2" face="Arial"> nickel chen <<a rel="nofollow" shape="rect" href="">nicke...@yahoo.com</a>> 于 2014年4月10日, 星期四, 3:24 下午 写道:<div class="yiv5653257205yqt7579759644" id="yiv5653257205yqtfd71826"><br
clear="none"> </div></font><div class="yiv5653257205yqt7579759644" id="yiv5653257205yqtfd77519"> </div></div><div class="yiv5653257205yqt7579759644" id="yiv5653257205yqtfd91160"> <div><div><div><div style="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12pt;"><div> Hi all,
I'm new to erlang and I'm learning the code of ejabberd 13.12, I already have ejabberd installed, then start it with</div><div><br clear="none"></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;">sudo ejabberdctl start</div><div><br clear="none"></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;">There is a crash message in /var/log/ejabberd.log</div><div>
</div><div><br clear="none"></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;">2014-04-10 14:37:56.520 [info] <0.7.0> Application ejabberd exited with reason: bad argument in call to erlang:iolist_to_binary([916, 953,945,956,972,961,966,969, 963,951,32,928,961,972,963, 946,945,963,951,962]) in translate:'-load_file/2-fun-2- '/3 line 91</div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;"><br clear="none"></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;"><span
style="font-size:12pt;background-color:transparent;">i added some debug info to the source code ` translate.erl` and recompile ejabberd. then start it again, below is the debug message:</span><br clear="none"></div><div style="color: rgb(0, 0, 0); font-size: 12pt; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;"><span style="font-size:12pt;"><br clear="none"></span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;"><span style="font-size:12pt;">
</span></div><div>2014-04-10 14:37:56.517 [info] <0.38.0>@translate:load_file: 87 File is: <<"//lib/ejabberd/priv/msgs/ el.msg">>, Orig is:"Access Configuration", Trans is: [916,953,945,956,972,961,966, 969,963,951,32,928,961,972, 963,946,945,963,951,962]</div><div><br clear="none"></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;">well it's clear that there are unicode characters in I18N translation , when passed to <span style="font-size:12pt;">the </span><span style="font-size:12pt;">erlang:iolist_to_ binary/1, it crashed with badarg, because iolist only accepts byte( ) binary( ) and other iolist( )</span></div><div><span style="font-size:12pt;"><br clear="none"></span></div><div>9> erlang:iolist_to_binary([256]) .</div><div>** exception error: bad
argument</div><div> in function iolist_to_binary/1</div><div> called as iolist_to_binary([256])</div><div>10> erlang:iolist_to_binary([255]) .</div><div><<"ÿ">></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;"><span style="font-size:12pt;">
</span></div><div>11> </div><div style="color: rgb(0, 0, 0); font-size: 12pt; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;"><span style="font-size:12pt;"><br clear="none"></span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;">My question is simple, how to get around with this problem and get ejabberd launched?</div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;"><br clear="none"></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent;
font-style: normal;">Thanks in advance!</div></div></div></div><br clear="none"><br clear="none"></div> </div></div><div class="yiv5653257205yqt7579759644" id="yiv5653257205yqtfd50052"> </div></div><div class="yiv5653257205yqt7579759644" id="yiv5653257205yqtfd94004"> </div></div><div class="yiv5653257205yqt7579759644" id="yiv5653257205yqtfd95956"> </div></div></div></blockquote></div></div></div><br><br></div> </div> </div> </div> </div></body></html>