Skip to content

Commit f02456a

Browse files
uuid - B - Tcl 9 portability fixes. Bumped to version 1.0.9
1 parent 3d1fae2 commit f02456a

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

modules/uuid/pkgIndex.tcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
if {![package vsatisfies [package provide Tcl] 8.5 9]} {return}
2-
package ifneeded uuid 1.0.8 [list source [file join $dir uuid.tcl]]
2+
package ifneeded uuid 1.0.9 [list source [file join $dir uuid.tcl]]

modules/uuid/uuid.man

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[vset VERSION 1.0.8]
1+
[vset VERSION 1.0.9]
22
[comment {-*- tcl -*- doctools manpage}]
33
[manpage_begin uuid n [vset VERSION]]
44
[keywords GUID]

modules/uuid/uuid.tcl

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,7 @@ proc ::uuid::generate_tcl_machinfo {} {
4747
# If we have /dev/urandom just stream 128 bits from that
4848
###
4949
if {[file exists /dev/urandom]} {
50-
set fin [open /dev/urandom r]
51-
fconfigure $fin -encoding binary
50+
set fin [open /dev/urandom rb]
5251
binary scan [read $fin 128] H* machinfo
5352
close $fin
5453
} elseif {[catch {package require nettool}]} {
@@ -237,7 +236,7 @@ namespace eval ::uuid {
237236
unset e
238237
}
239238

240-
package provide uuid 1.0.8
239+
package provide uuid 1.0.9
241240

242241
# -------------------------------------------------------------------------
243242
# Local variables:

0 commit comments

Comments
 (0)