Artifact
85fb63ca2453dc9ae91eac1d478c28248bb6fae4:
Ticket change
[85fb63ca24]
- New ticket
[e3da32d8169e7584|e3da32d816] <i>max os x [glob] returns the decomposed filenames</i>.
by
anonymous on
2015-04-21 05:03:23.
D 2015-04-21T05:03:23.816
J assignee nobody
J closer nobody
J cmimetype text/plain
J comment On\sthe\smac,\sa\s[glob]\swill\sreturn\sthe\sdecomposed\sutf-8\sform\sof\sthe\sfilename.\r\nglob\sshould\sconvert\sthe\sfilenames\sto\sthe\sstandard\sutf-8\sformat.\r\nAn\sencoding\sto\sconvert\sthese\smight\salso\sbe\suseful.\r\n\r\n#!/opt/local/bin/tclsh\r\n#\r\n#\sreferences\r\n#\s\s\s\s\shttp://stackoverflow.com/questions/6153345/different-utf8-encoding-in-filenames-os-x\r\n#\s\s\s\s\shttps://developer.apple.com/library/mac/qa/qa1173/_index.html\r\n\r\nset\sorig\s{aĆ”}\r\nset\sfh\s[open\s$orig\sw]\r\nclose\s$fh\r\nset\sfnlist\s[glob\s-nocomplain\sa*]\r\nforeach\s{fn}\s$fnlist\s{\r\n\s\sif\s{\s!\s[regexp\s{^a}\s$fn]\s}\s{\r\n\s\s\s\scontinue\r\n\s\s}\r\n\s\sputs\s"orig:$orig"\r\n\s\sputs\s"\s\sfn:$fn"\r\n\s\sif\s{\s$orig\s==\s$fn\s}\s{\r\n\s\s\s\sputs\s"\s\sequal"\r\n\s\s}\selse\s{\r\n\s\s\s\sputs\s"\s\snot\sequal"\r\n\s\s}\r\n}
J foundin 8.6.3
J is_private 0
J login anonymous
J priority 5\sMedium
J private_contact e755306c9ef019bc4ca35d69adcf001dece786ff
J resolution None
J severity Important
J status Open
J submitter anonymous
J subsystem 44.\sUTF-8\sStrings
J title max\sos\sx\s[glob]\sreturns\sthe\sdecomposed\sfilenames
J type Bug
K e3da32d8169e7584f93dea8592f1f5b9a37f0413
U anonymous
Z d37422d06e334562ac99a9a6b092c67e