- Timestamp:
- 06/28/08 09:00:08 (3 months ago)
- Location:
- trunk
- Files:
-
- 5 modified
-
configs/b.config (modified) (2 diffs)
-
configs/cx.config (modified) (6 diffs)
-
configs/NOTES.txt (modified) (1 diff)
-
examples/encodings/NOTES.txt (modified) (1 diff)
-
RELEASE_NOTES.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/configs/b.config
r4323 r4327 4 4 % Release 2.32.1 5 5 % 6 % configuration file for B-Prolog 7. 07 % 8 % last updated: May 30, 20086 % configuration file for B-Prolog 7.1 7 % 8 % last updated: June 28, 2008 9 9 % 10 10 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% … … 185 185 186 186 '$lgt_default_flag'(encoding_directive, unsupported). 187 '$lgt_default_flag'(multifile_directive, unsupported).187 '$lgt_default_flag'(multifile_directive, supported). 188 188 '$lgt_default_flag'(threads, unsupported). 189 189 -
trunk/configs/cx.config
r4323 r4327 4 4 % Release 2.32.1 5 5 % 6 % configuration file for CxProlog 0.9 6or a later version7 % 8 % last updated: May 30, 20086 % configuration file for CxProlog 0.97.1 or a later version 7 % 8 % last updated: June 28, 2008 9 9 % 10 10 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% … … 34 34 35 35 '$lgt_iso_predicate'(read_term(_, _, _)). 36 '$lgt_iso_predicate'(write_canonical(_, _)).37 '$lgt_iso_predicate'(write_term(_, _, _)).38 36 39 37 … … 46 44 47 45 48 write_canonical(Stream, Term) :-49 writeq(Stream, Term).50 51 52 write_term(Stream, Term, _) :-53 write(Stream, Term).54 55 56 46 57 47 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% … … 79 69 80 70 81 % call_cleanup(+callable, +callble) 82 83 call_cleanup(_, _) :- 84 throw(not_supported(call_cleanup/2)). 71 % call_cleanup(+callable, +callble) -- built-in 85 72 86 73 … … 318 305 % Logtalk source file, given a list of options 319 306 307 '$lgt_load_prolog_code'(File, _, [encoding(Encoding)]) :- 308 !, 309 current_prolog_flag(encoding, Default), 310 set_prolog_flag(encoding, Encoding), 311 catch(consult(File), Error, (set_prolog_flag(encoding, Default), throw(Error))), 312 set_prolog_flag(encoding, Default). 313 320 314 '$lgt_load_prolog_code'(File, _, _) :- 321 315 consult(File). … … 528 522 % '$lgt_logtalk_prolog_encoding'(?atom, ?atom, +stream) 529 523 530 '$lgt_logtalk_prolog_encoding'('US-ASCII', 'en_US.UTF-8', _). 531 '$lgt_logtalk_prolog_encoding'('ISO-8859-1', 'en_US.ISO8859-1', _). 532 '$lgt_logtalk_prolog_encoding'('UTF-8', 'en_US.UTF-8', _). 524 '$lgt_logtalk_prolog_encoding'('US-ASCII', ascii, _). 525 '$lgt_logtalk_prolog_encoding'('ISO-8859-1', iso_latin_1, _). 526 '$lgt_logtalk_prolog_encoding'('UTF-8', utf8, _). 527 '$lgt_logtalk_prolog_encoding'('UCS-2', Encoding, Stream) :- % UTF-16 subsumes UCS-2 528 '$lgt_logtalk_prolog_encoding'('UTF-16', Encoding, Stream). 529 '$lgt_logtalk_prolog_encoding'('UCS-2BE', unicode_be, _). 530 '$lgt_logtalk_prolog_encoding'('UCS-2LE', unicode_le, _). 531 '$lgt_logtalk_prolog_encoding'('UTF-16', Encoding, Stream) :- % BOM optional but strongly recommended 532 ( stream_property(Stream, encoding(utf16be)) -> 533 Encoding = utf16be 534 ; stream_property(Stream, encoding(utf16le)) -> 535 Encoding = utf16le 536 ). 537 '$lgt_logtalk_prolog_encoding'('UTF-16BE', utf16be, _). % BOM forbidden 538 '$lgt_logtalk_prolog_encoding'('UTF-16LE', utf16le, _). 539 '$lgt_logtalk_prolog_encoding'('UTF-32', Encoding, Stream) :- % BOM mandatory 540 ( stream_property(Stream, encoding(utf32be)) -> 541 Encoding = utf32be 542 ; stream_property(Stream, encoding(utf32le)) -> 543 Encoding = utf32le 544 ). 545 '$lgt_logtalk_prolog_encoding'('UTF-32BE', utf32be, _). % BOM forbidden 546 '$lgt_logtalk_prolog_encoding'('UTF-32LE', utf32le, _). 533 547 534 548 -
trunk/configs/NOTES.txt
r4323 r4327 152 152 153 153 154 CxProlog 0.9 5.xor later versions154 CxProlog 0.97.1 or later versions 155 155 156 156 cx.config -
trunk/examples/encodings/NOTES.txt
r4323 r4327 22 22 mythology.lgt - UTF-32 (with a BOM) 23 23 24 As of the release date of the Logtalk 2.31.2 version, only SICStus Prolog 25 supports UTF-32 encodings. Attempting to compile the "mythology.lgt" source 26 file with either YAP or SWI-Prolog results in a misleading syntax error. 27 CxProlog only supports US-ASCII and UTF-8 encodings (ISO-8859-1 seems to be 28 broken when reading terms). 24 As of the release date of this Logtalk version, only SICStus Prolog and 25 CxProlog support UTF-32 encodings. Attempting to compile the "mythology.lgt" 26 source file with either YAP or SWI-Prolog results in a misleading syntax 27 error. 29 28 30 Be sure to use a text editor that supports these encodings when opening these31 files. In addition, you may need to configure your text editor to open the32 source file using the declared encoding. Be sure to use a font that supports33 Unicode characters (both for your text editor and for your Prolog compiler34 interpreter).29 Be sure to use a text editor that supports these encodings when opening 30 these files. In addition, you may need to configure your text editor to 31 open the source file using the declared encoding. Be sure to use a font 32 that supports Unicode characters (both for your text editor and for the 33 shell running your Prolog compiler interpreter). 35 34 36 35 See the documentation of the Logtalk encoding/1 directive for its possible 37 arguments. The Prolog and XML files generated by the Logtalk compiler use the38 same encoding as the compiled source files.36 arguments. The Prolog and XML files generated by the Logtalk compiler use 37 the same encoding as the compiled source files. -
trunk/RELEASE_NOTES.txt
r4325 r4327 11 11 12 12 13 2.32.1 - July ??, 200813 2.32.1 - July 30, 2008 14 14 15 15 Restored the redefined entity warnings for back-end Prolog compilers … … 20 20 Changed the representation of the runtime tables for loaded entities 21 21 in order to drop the need of a "functors clause" per entity. This avoids 22 redundancy on the representation of entity functors and helps reducing23 the size of the generated Prolog files.22 some redundancy on the representation of entity functors and also helps 23 reducing a bit the size of the generated Prolog files. 24 24 25 25 When loading a redefined object, also clean all entries in the event … … 29 29 and loading source files (instead of doing it only when the files 30 30 redefine existing entities). 31 32 Updated the CxProlog config file to take advantage and require the new 33 0.97.1 version (which implements some more ISO Prolog predicates and 34 expands support for text encodings). 35 36 Updated the B-Prolog config file to take advantage and require the new 37 7.1 version (which adds support for the multifile/1 predicate directive). 31 38 32 39 Updated the SWI-Prolog config file notes about possible compatibility
