From magnus@REDACTED Wed Apr 2 16:37:02 2003 From: magnus@REDACTED (=?ISO-8859-1?Q?Magnus_Fr=F6berg?=) Date: Wed, 02 Apr 2003 16:37:02 +0200 Subject: erl_interface (erl_connect..c) Message-ID: <3E8AF58E.9080501@bluetail.com> Hi a patch for erl_interface R9B-0 (a similar applies to R8B and R9B-1). erl_do_receive_msg in erl_connect.c doesn't return the exit reason in case of ERL_EXIT and ERL_EXIT2. (erl_rpc and erl_rpc_from are affected) RCS file: /home/share/erlang/cvsroot/otp/lib/erl_interface/src/erl_connect.c,v retrieving revision 1.7 diff -u -r1.7 erl_connect.c --- erl_connect.c 25 Feb 2003 13:36:34 -0000 1.7 +++ erl_connect.c 2 Apr 2003 13:33:06 -0000 @@ -467,6 +467,8 @@ switch (msg.msgtype) { case ERL_SEND: case ERL_REG_SEND: + case ERL_EXIT: + case ERL_EXIT2: if (ei_decode_term(x->buff, &index, &emsg->msg) < 0) r = ERL_ERROR; break; /Magnus -- Magnus Fr?berg Tel: +46 (0)8 545 55 026 Alteon WebSystems AB Email: magnus@REDACTED S:t Eriksgatan 44 WWW: http://www.alteonwebsystems.com SE-112 34 Stockholm, SWEDEN From dinowanga@REDACTED Sun Apr 6 00:31:28 2003 From: dinowanga@REDACTED (DINO WANGA) Date: Sun, 06 Apr 2003 00:31:28 Subject: RESPOND URGENTLY. Message-ID: <200304052231.h35MVPA96159@hades.cslab.ericsson.net> Sir, I am Dino Wanga,The son of former minister of finance (Wanga Makabo) of the Republic of Sierra-Leone West Africa based on the information I gathered from your chamber of commerce and industry on your credibility, I decide to contact for the assistance. Regarding my zeal toward foreign investment and security for my life and possession, I therefore write to you a break down of this proposal. My father died when a group of rebel soldier led by Sir Foday Sankoh overthrown Government of sierra-Leone forcing the president out of power and killing many members of the cabinet and minister including my own father. When it become apparently obvious that the country no longer safe for the citizens due to the political war and massive killing and destruction of properties, I decided to move to Holland with a treasure containing the sum of US$12.500.000.00(twelve million five hundred thousand united state dollars) through a diplomatic means, this fund is the last tangible money my father left behind before his death. The said amount is presently in Holland (The Netherlands) where I am currently seeking political asylum. While the consignment containing the fund is in the custody of the diplomatic courier company they are not aware of the content as it was deposited as personal effect and artifact. I am seeking for partner who will serve as a the guardian of this fund with whom I could plan the best way to move this money out of Holland for investment which is my main purpose of contacting you. Thus I decided to offer you 20% of the total money for assisting me to actualize this project while 10% of the money has been set aside to offset any incidental expenses that might incurred during the course of this funds and the balance 70%shall be for me and my family which shall be invested in your country. And are will visit you country soonest in order to inquire areas of possible business investment. I shall be sincerely glad if my request is rendered. Thank you God bless you Dino Wanga From cpressey@REDACTED Sat Apr 12 22:03:27 2003 From: cpressey@REDACTED (Chris Pressey) Date: Sat, 12 Apr 2003 15:03:27 -0500 Subject: Complexity Shock Horror II: the Sequel (was Re: MD5 in erlang.) In-Reply-To: <20030411232246.0b0a95b9.cpressey@catseye.mb.ca> References: <01cc01c2ff6e$8779d830$8500000a@Clarke> <20030411232246.0b0a95b9.cpressey@catseye.mb.ca> Message-ID: <20030412150327.33c6a082.cpressey@catseye.mb.ca> On Fri, 11 Apr 2003 23:22:46 -0500 Chris Pressey wrote: > (Errr... you *are* going to add to_upper/1 and to_lower/1 to the > string module... right? Or are those still going to be officially > classified as 'httpd helper functions'? :) In an attempt to dislodge Matthias from his chair, here is a patch against R9B-1 that puts these functions in their place. If this is something the OTP team wants, I can make a better patch in the near future (tail-recursive, fixup the references in httpd_*.erl, etc.) -Chris -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: string.diff URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: otp_internal.diff URL: From cpressey@REDACTED Sun Apr 13 04:19:08 2003 From: cpressey@REDACTED (Chris Pressey) Date: Sat, 12 Apr 2003 21:19:08 -0500 Subject: Complexity Shock Horror II: the Sequel (was Re: MD5 in erlang.) In-Reply-To: <20030412150327.33c6a082.cpressey@catseye.mb.ca> References: <01cc01c2ff6e$8779d830$8500000a@Clarke> <20030411232246.0b0a95b9.cpressey@catseye.mb.ca> <20030412150327.33c6a082.cpressey@catseye.mb.ca> Message-ID: <20030412211908.1fa75e48.cpressey@catseye.mb.ca> On Sat, 12 Apr 2003 15:03:27 -0500 Chris Pressey wrote: > If this is something the OTP team wants, I can make a better patch in > the near future (tail-recursive, fixup the references in httpd_*.erl, > etc.) Done this now, see attached patch (also contains my older patch for regexp and a few minor tweaks to other files (e.g. -include to -include_lib so I could recompile it easily) math:base/2 returns the same (goofy) error codes as httpd_util:hexlist_to_integer/1 and httpd_util:integer_to_hexlist/1 It does NOT, however, simulate the what-I'd-consider-broken behaviour of httpd_util:hexlist_to_integer/1: Eshell V5.2.3.3 (abort with ^G) 1> httpd_util:hexlist_to_integer("3G5"). 3 2> httpd_util:hexlist_to_integer("-3F5"). 0 Instead it returns 'error' or 'not_a_num' for negative values, as the httpd_util functions do, on the errors that they do detect. -Chris -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: stdlib+inets.patch URL: From cpressey@REDACTED Sun Apr 13 04:48:44 2003 From: cpressey@REDACTED (Chris Pressey) Date: Sat, 12 Apr 2003 21:48:44 -0500 Subject: all your base are belong to us In-Reply-To: <20030412211908.1fa75e48.cpressey@catseye.mb.ca> References: <01cc01c2ff6e$8779d830$8500000a@Clarke> <20030411232246.0b0a95b9.cpressey@catseye.mb.ca> <20030412150327.33c6a082.cpressey@catseye.mb.ca> <20030412211908.1fa75e48.cpressey@catseye.mb.ca> Message-ID: <20030412214844.051127df.cpressey@catseye.mb.ca> On Sat, 12 Apr 2003 21:19:08 -0500 Chris Pressey wrote: > math:base/2 returns the same (goofy) error codes as > httpd_util:hexlist_to_integer/1 and httpd_util:integer_to_hexlist/1 Apologies for wasting bandwidth. base/2 was slightly messed up in the last patch, this one is better (returns 'error' for bases less than 2 or greater than 36.) -Chris -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: stdlib+inets.patch URL: From robert.virding@REDACTED Sun Apr 13 21:02:50 2003 From: robert.virding@REDACTED (Robert Virding) Date: Sun, 13 Apr 2003 21:02:50 +0200 Subject: Complexity Shock Horror II: the Sequel (was Re: MD5 in erlang.) References: <01cc01c2ff6e$8779d830$8500000a@Clarke> <20030411232246.0b0a95b9.cpressey@catseye.mb.ca> <20030412150327.33c6a082.cpressey@catseye.mb.ca> Message-ID: <003a01c301ef$47caf240$8100a8c0@virding.org> Yes, add these! Robert ----- Original Message ----- From: "Chris Pressey" To: Cc: Sent: Saturday, April 12, 2003 10:03 PM Subject: Re: Complexity Shock Horror II: the Sequel (was Re: MD5 in erlang.) > On Fri, 11 Apr 2003 23:22:46 -0500 > Chris Pressey wrote: > > > (Errr... you *are* going to add to_upper/1 and to_lower/1 to the > > string module... right? Or are those still going to be officially > > classified as 'httpd helper functions'? :) > > In an attempt to dislodge Matthias from his chair, here is a patch > against R9B-1 that puts these functions in their place. > > If this is something the OTP team wants, I can make a better patch in > the near future (tail-recursive, fixup the references in httpd_*.erl, > etc.) > > -Chris > From earlyriser@REDACTED Wed Apr 16 16:41:25 2003 From: earlyriser@REDACTED (Sean Hinde) Date: Wed, 16 Apr 2003 15:41:25 +0100 Subject: Inets 3.0.1 and 3.0.3 bug Message-ID: <7FC84BC3-7019-11D7-AAAC-000393A45C3C@mac.com> The following esi callback generates broken HTTP test1(Env, []) -> io:format("Env:~p~n",[Env]), ["", "", "Test1", "", "", "

Erlang Body

", "

Stuff

", "", ""]. The problem is that inets does not add the empty line at the end of the headers. The following patch fixes this case, though I haven't run any other regression tests. Interestingly the only browser I found which actually still managed to load the page was IE on Windows. I can't imagine what algorithm they used to figure this out.. --- httpd_response.erl.orig Mon Apr 14 18:41:28 2003 +++ httpd_response.erl Wed Apr 16 15:38:44 2003 @@ -415,7 +415,7 @@ {ok, Body} -> Header = httpd_util:header(StatusCode,Info#mod.connection) ++ - "Content-Length:" ++ content_length(Body), + "Content-Length:" ++ content_length(Body) ++"\r\n", httpd_socket:deliver(Type, Sock, [Header, Response]); {error, Reason} -> From etxuwig@REDACTED Thu Apr 17 17:19:06 2003 From: etxuwig@REDACTED (Ulf Wiger) Date: Thu, 17 Apr 2003 17:19:06 +0200 (MEST) Subject: packages and forgotten imports Message-ID: I've been playing around with packages in Erlang for a while, and must say that it happens annoyingly often that I forget to insert 'import' clauses for OTP modules that I want to use. The standard Erlang problem of calling undefined external functions is usually not a very big one, IMHO, but it becomes decidedly more common with packages due to the legacy treatment of "the empty package". A suggestion: if a module with a package name is compiled, the linter could issue a warning if an implicitly named module is not found in the 'outdir'. It's not difficult to order modules in the Makefile so that compilation is done in dependency order; this has to be done anyway if one defines custom behaviours or parse transforms (I know, that doesn't happen every day.) I've attached a suggested patch to erl_lint.erl. Given the following test module (test.erl): -module(mypackage.test). -export([foo/0]). %% forgotten -import(lists). foo() -> lists:foldl(fun(X,A) -> [X|A] end, [], [a,b,c]). 1> compile:file(test,[{outdir,"../ebin"},return_warnings]). {ok,'mypackage.test', [{"./test.erl",[{7,erl_lint,{maybe_missing_import,"lists"}}]}]} 42> compile:file(test,[{outdir,"../ebin"},report_warnings]). ./test.erl:7: Warning: Missing import for module lists {ok,'mypackage.test'} /Uffe -- Ulf Wiger, Senior Specialist, / / / Architecture & Design of Carrier-Class Software / / / Strategic Product & System Management / / / Ericsson AB, Connectivity and Control Nodes -------------- next part -------------- 121a122,123 > format_error({maybe_missing_import, Name}) -> > io_lib:format("Missing import for module ~s", [Name]); 2045c2047,2050 < M1 = packages:concat(St1#lint.package, --- > St2 = add_warning( > not(exists_in_package(Name, St1)), > L, {maybe_missing_import,Name}, St1), > M1 = packages:concat(St2#lint.package, 2047c2052 < {{atom,L,list_to_atom(M1)}, St1} --- > {{atom,L,list_to_atom(M1)}, St2} 2067a2073,2082 > end. > > exists_in_package(Name, St) -> > OutDir = proplists:get_value(outdir,St#lint.compile), > case file:read_file_info( > filename:join(OutDir, Name ++ code:objfile_extension())) of > {ok, _} -> > true; > _ -> > false From mmss@REDACTED Sat Apr 19 08:20:45 2003 From: mmss@REDACTED (O.C.SAVIMBI) Date: Sat, 19 Apr 2003 08:20:45 +0200 Subject: PLEAE BE CONSIDERATE Message-ID: <200304190620.h3J6KfA74641@hades.cslab.ericsson.net> REPLY TO:ocsavimbi@REDACTED TELE:+31 6 4528 2460 Good Day, With warm heart I offer my friendship, and greetings, and I hope this mail meets you in good time. However strange or surprising this contact might seem to you as we have not met personally or had any dealings in the past, I humbly ask that you take due consideration of its importance and immense benefit. I duly apologize for infringing on your privacy, if this contact is not acceptable to you, as I make this proposal to you as a person of integrity. First and foremost I wish to introduce myself properly to you. My name is Oliveira Chuli Savimbi, I am a nephew and Personal Assistant to Late Jonas Malheiro Savimbi, leader of UNITA (National Union for the Total Independence of Angola). As led by my instinct, I selected your email address from an internet directory, in my search for a partner, hence this email. I also crave your indulgence to read this carefully, and have a general overview of my situation. My Uncle (Mentor) was killed in a battle with government forces of Angola, led by President Dos Santos, on Friday 22nd February 2002. After his death, Mr. Antonio Dembo who was his second in command, assumed office as leader of UNITA, due to the lack of Charisma my Uncle had carried the party with in Dembo, there was chaos and struggle for leadership. Prominent members like Carlos Morgado lobbied to depose him and assume office as leader to enrich themselves and some of them who saw me as a threat to their ambitions, including Mr.Dembo, planned to kill me. The tension and confusion in UNITA become uncontrollable when Mr. Dembo died 10days after my Uncle's death. As I already lost my mentor in this struggle that has been on for three decades now, not so much of the struggle interested me anymore, as there was no more sense of direction. I then desired a peaceful life, as I no more had interest in conflicts and wars. For this reason, I secretly left Angola and came here (Holland) to seek for political asylum. I am sincerely proposing to you to render me your most needed assistance in respect to safekeeping of some of my Uncle's money that arose from Diamonds sales. This money (US$18.5million), which was already on its way to my Uncle's Swiss Bank account, through the Diplomatic means we use to move money abroad, and was on transit with a private safe deposit security company here in Amsterdam, Holland in February last year when the tragic incident of my Uncle's death occurred. I then instructed the company to secure the consignment containing the money pending on further instructions from me. I have waited all this time now for security reasons, and have now decided to act with your reliable assistance. As a matter of fact, the reason I came to Holland and sought for political asylum here is the safe deposit with the Security Company here in Amsterdam. President Jose Eduardo Dos Santos has lobbied the International Community to freeze my Uncle's assets and accounts abroad, to ground UNITA, and has already done this in Angola. Hence I cannot lodge the funds in my name. Also I did not declare the funds to the government here. I plan to use this money to safeguard my future. It is very essential that you understand that the kind of trust and confidence I want to place in you is extraordinary, and an act of desperation on my part, in order not to lose this money. Also, ensure that this contact with you should be treated with utmost secrecy. Your role in this project, is acting on my behalf to clear the safety deposit containing the money which is deposited in my name, from the Security company, after which, the money will lodged into an account preferably a new account you should open for this transaction. My share of the money will be returned to me when my asylum application in this country is granted, and I have permission to do business and open an account here. For your reliable assistance, I will reward you with 15%($2,775,000) of the money. I have with me, the Certificate of Deposit for the safety deposit, which will be used for claim from the security company, and the release codes of the vaults. Also, everything will be legally processed for transfer of ownership to you, and this transaction should be completed immediately depending on your prompt response. I thank you in advance as I anticipate your assistance in enabling me achieve this goal. Please contact me whether or not you are interested in assisting me. This will enable me scout for another partner in the event of non-interest on your part. To know more about the struggle by UNITA to liberate Angola, click on the links below and read. http://www.the-idler.com/IDLER-02/3-16.html http://news.bbc.co.uk/hi/english/world/africa/newsid_1839000/1839252.s tm Sincerely, O.C.Savimbi. From vances@REDACTED Wed Apr 23 09:20:40 2003 From: vances@REDACTED (Vance Shipley) Date: Wed, 23 Apr 2003 03:20:40 -0400 Subject: ei_get_type() documented incorrectly Message-ID: <20030423072040.GZ53726@frogman.motivity.ca> The correct syntax is: int ei_get_type(const char *buf, const int *index, int *type, int *size) It appears in the documentation(*) as: int ei_get_type(const ei_x_buff* x, int *type, int *size) -Vance (*) ~/lib/erlang/lib/erl_interface-3.3.2/doc/html/ei.html From kent@REDACTED Thu Apr 24 01:51:01 2003 From: kent@REDACTED (Kent Boortz) Date: 24 Apr 2003 01:51:01 +0200 Subject: ei_get_type() documented incorrectly In-Reply-To: <20030423072040.GZ53726@frogman.motivity.ca> References: <20030423072040.GZ53726@frogman.motivity.ca> Message-ID: Vance Shipley writes: > The correct syntax is: > > int ei_get_type(const char *buf, const int *index, int *type, int *size) > > It appears in the documentation(*) as: > > int ei_get_type(const ei_x_buff* x, int *type, int *size) Thanks, this is corrected, kent From produtos001@REDACTED Wed Apr 30 17:04:35 2003 From: produtos001@REDACTED (CG) Date: Wed, 30 Apr 2003 15:04:35 -0000 Subject: O novo você para quando ? Message-ID: <200304301404.h3UE4jr41384@hades.cslab.ericsson.net> An HTML attachment was scrubbed... URL: