From mickael.remond@REDACTED Sun May 1 22:29:24 2005 From: mickael.remond@REDACTED (Mickael Remond) Date: Sun, 01 May 2005 22:29:24 +0200 Subject: filelib:wildcard/2 Message-ID: <42753C24.8090207@erlang-fr.org> Hello, I have been trying to use filelib:wildcard/2 in Erlang/OTP R10B-3. The documentation says: wildcard(Wildcard, Cwd) -> list() Types Wildcard = filename() | dirname() Cwd = dirname() The wildcard/2 function works like wildcard/1, except that instead of the actual working dirctory, Cwd will be used. However, this feature does not seem to be implemented: filelib:wildcard("*", "/") always return the content of the current directory. I hope this helps, -- Micka?l R?mond From tpatro@REDACTED Tue May 10 10:26:27 2005 From: tpatro@REDACTED (Tamas Patrovics) Date: Tue, 10 May 2005 10:26:27 +0200 Subject: erlang module html doc bug Message-ID: in file ./lib/kernel-2.10.6/doc/html/erlang.html this line doesn't seem to be right: erlang:raise(Class, Reason, Stacktrace) erlang:raise(Class, Reason, Stacktrace) This is how it appears in the browser. /Tamas From ft@REDACTED Thu May 12 09:36:46 2005 From: ft@REDACTED (Fredrik Thulin) Date: Thu, 12 May 2005 09:36:46 +0200 Subject: R10B-5 compiler bug with two try/catch Message-ID: <200505120936.46656.ft@it.su.se> Hi This bug is not fixed in R10B-5, posting to erlang-questions too as it did not result in any feedback on the erlang-bugs list. $ /pkg/erlang/R10B-5/bin/erlc sipparse_util.erl sipparse_util: function test/0+34: Internal consistency check failed - please report this bug. Instruction: {try_end,{y,0}} Error: unknown_catch_try_state: $ /Fredrik PS. The documented return value of timer:now_diff/2 has an obvious copy/paste error : now_diff(T2, T1) -> {Time, Value} ---------- Forwarded Message ---------- Subject: R10B-4 compiler bug with two try/catch Date: Friday 15 April 2005 11.10 From: Fredrik Thulin To: erlang-bugs@REDACTED Hi The attached file cause the following error on R10B-4 : $ /pkg/erlang/R10B-4/bin/erlc sipparse_util.erl sipparse_util: function test/0+34: Internal consistency check failed - please report this bug. Instruction: {try_end,{y,0}} Error: unknown_catch_try_state: $ /Fredrik ------------------------------------------------------- -------------- next part -------------- -module(sipparse_util). %%-compile(export_all). -export([test/0]). split_quoted_string([34 | _Rest]) -> %% 34 is '"' ok. test() -> %% does not start with quote io:format("test: split_quoted_string/1 - 5~n"), try split_quoted_string("foo \"bar\"") of SQS_Res5 -> throw({error, test_case_failed, SQS_Res5}) catch error: does_not_start_with_quote -> ok end, %% no ending quote io:format("test: split_quoted_string/1 - 6~n"), try split_quoted_string("\"foo ") of SQS_Res6 -> throw({error, test_case_failed, SQS_Res6}) catch error: no_end_quote -> ok end, ok. From leigh.fiddes@REDACTED Mon May 16 03:45:30 2005 From: leigh.fiddes@REDACTED (Leigh Fiddes) Date: Mon, 16 May 2005 11:45:30 +1000 Subject: Megaco text encoding problem with embedded Signal Message-ID: <4287FB3A.2000201@nec.com.au> Hi, I am experimenting with the Erlang Megaco stack (3.0.1) and I am having a problem encoding an embedded Signal within an Event. The erlang code I am using is: SRE1 = #'SecondRequestedEvent'{ pkgdName = "al/on", evParList = [] }, SED = #'SecondEventsDescriptor'{ requestID = 2, eventList = [ SRE1 ] }, SIG = { signal, #'Signal'{ signalName = "cg/dt", sigParList = [] } }, RA = #'RequestedActions'{ secondEvent = SED, signalsDescriptor = [ SIG ] }, RE = #'RequestedEvent'{ pkgdName = "al/of", eventAction = RA, evParList = [] }, EV = #'EventsDescriptor'{ requestID = 1, eventList = [ RE ] }, TermID = {megaco_term_id, true, [[$*]] }, AMMR = #'AmmRequest'{ terminationID = [ TermID ], descriptors = [ { eventsDescriptor, EV } ] }, CR = #'CommandRequest'{command = {modReq, AMMR}}, AR = #'ActionRequest'{contextId = ?megaco_null_context_id, commandRequests = [CR]}, but the megaco message produced is: Context = - { Modify = * { Events = 1 { al/of { Embed { Events = 2 { al/on } }, Signals { cg/dt } } } } } whereas my reading of H.248.1 say that the correct syntax for this should be: Context = - { Modify = * { Events = 1 { al/of { Embed { Signals { cg/dt }, Events = 2 { al/on } } } } } } Is my interpretation or method incorrect or is the pretty text encoder incorrect? Regards, Leigh -- ============================================================ Leigh Fiddes email: Leigh.Fiddes@REDACTED Software Development Manager Phone: +61 3 9264 3864 Broadband Network Technology Division Fax: +61 3 9264 3892 NEC Australia