ESense 1.3 released
Tamas Patrovics
tpatro@REDACTED
Wed Jun 8 12:48:47 CEST 2005
Hi,
On 6/8/05, Chandrashekhar Mullaparthi
<chandrashekhar.mullaparthi@REDACTED> wrote:
>
> For some modules in the cosNotification application, the esense.erl
> generate_module/2 function crashes.
It didn't crash for me, only these modules were not offered as
completions. Maybe the Mac cannot create files with non-printable
characters in the name?
Anyway:
> The problem seems to be some funny character in the
> module name. Item number 23 in the list below is not a printable Ascii
> character and that is what seems to be causing problems.
It seems the special character comes from the HTML doc, so it's
probably a bug in the official documentation.
Here's a quick fix to filter out this character from the module name
before storing it:
--- esense-1.3/esense.erl 2005-06-06 08:01:54.000000000 +0200
+++ esense/esense.erl 2005-06-08 12:29:59.029718144 +0200
@@ -50,7 +50,9 @@
parse_html({'div', _, Text}, {module_name, Module}) ->
ModuleName = string:strip(remove_newlines(string:substr(Text, 2,
length(Text) - 2))),
- {next_function, Module#module{name = ModuleName}};
+ %% some module names contain strange characters (ASCII 173)
+ %% these are removed before storing the module name
+ {next_function, Module#module{name = [ C || C <- ModuleName, C /= 173 ]}};
Thanks for the bug report. This fix will be in the next release.
/Tamas
More information about the erlang-questions
mailing list