Skip to content

Commit 0ea72f9

Browse files
committed
org_lc function >> alias
1 parent ba6079f commit 0ea72f9

38 files changed

+76
-152
lines changed

release/.w3mplus/bin/cgi-bin/protectionpage

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,17 +62,15 @@ trap 'end_call 130' 2 # SIGI
6262
trap 'end_call 131' 3 # SIGQUIT
6363
trap 'end_call 143' 15 # SIGTERM
6464

65+
alias org_lc='LC_ALL="${LC_ALL_ORG}"'
66+
6567

6668
end_call() {
6769
trap '' 0 # EXIT
6870
rm -fr -- ${tmpDir:+"${tmpDir}"}
6971
exit "${1:-0}"
7072
}
7173

72-
org_lc() {
73-
LC_ALL="${LC_ALL_ORG}" ${@+"${@}"}
74-
}
75-
7674

7775

7876

release/.w3mplus/bin/cgi-bin/viewsource

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,17 +63,15 @@ trap 'end_call 130' 2 # SIGI
6363
trap 'end_call 131' 3 # SIGQUIT
6464
trap 'end_call 143' 15 # SIGTERM
6565

66+
alias org_lc='LC_ALL="${LC_ALL_ORG}"'
67+
6668

6769
end_call() {
6870
trap '' 0 # EXIT
6971
rm -fr -- ${tmpDir:+"${tmpDir}"}
7072
exit "${1:-0}"
7173
}
7274

73-
org_lc() {
74-
LC_ALL="${LC_ALL_ORG}" ${@+"${@}"}
75-
}
76-
7775
parser_definition() {
7876
setup REST plus:true abbr:true error:option_error no:0 help:usage \
7977
-- 'Usage:' " QUERY_STRING=URL ${2##*/}" \

release/.w3mplus/bin/cgi-bin/w3mplus

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,17 +99,15 @@ trap 'end_call 130' 2 # SIGI
9999
trap 'end_call 131' 3 # SIGQUIT
100100
trap 'end_call 143' 15 # SIGTERM
101101

102+
alias org_lc='LC_ALL="${LC_ALL_ORG}"'
103+
102104

103105
end_call() {
104106
trap '' 0 # EXIT
105107
rm -fr -- ${tmpDir:+"${tmpDir}"}
106108
exit "${1:-0}"
107109
}
108110

109-
org_lc() {
110-
LC_ALL="${LC_ALL_ORG}" ${@+"${@}"}
111-
}
112-
113111

114112

115113
datauri() {

release/.w3mplus/bin/changeconfig

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,17 +50,15 @@ trap 'end_call 130' 2 # SIGI
5050
trap 'end_call 131' 3 # SIGQUIT
5151
trap 'end_call 143' 15 # SIGTERM
5252

53+
alias org_lc='LC_ALL="${LC_ALL_ORG}"'
54+
5355

5456
end_call() {
5557
trap '' 0 # EXIT
5658
rm -fr -- ${tmpDir:+"${tmpDir}"}
5759
exit "${1:-0}"
5860
}
5961

60-
org_lc() {
61-
LC_ALL="${LC_ALL_ORG}" ${@+"${@}"}
62-
}
63-
6462

6563

6664
option_error() {

release/.w3mplus/bin/contextmenu

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,17 +50,15 @@ trap 'end_call 130' 2 # SIGI
5050
trap 'end_call 131' 3 # SIGQUIT
5151
trap 'end_call 143' 15 # SIGTERM
5252

53+
alias org_lc='LC_ALL="${LC_ALL_ORG}"'
54+
5355

5456
end_call() {
5557
trap '' 0 # EXIT
5658
rm -fr -- ${tmpDir:+"${tmpDir}"}
5759
exit "${1:-0}"
5860
}
5961

60-
org_lc() {
61-
LC_ALL="${LC_ALL_ORG}" ${@+"${@}"}
62-
}
63-
6462
parser_definition() {
6563
setup REST plus:true abbr:true error:option_error no:0 help:usage \
6664
-- 'Usage:' " ${2##*/}" \

release/.w3mplus/bin/executeusercommand

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,17 +50,15 @@ trap 'end_call 130' 2 # SIGI
5050
trap 'end_call 131' 3 # SIGQUIT
5151
trap 'end_call 143' 15 # SIGTERM
5252

53+
alias org_lc='LC_ALL="${LC_ALL_ORG}"'
54+
5355

5456
end_call() {
5557
trap '' 0 # EXIT
5658
rm -fr -- ${tmpDir:+"${tmpDir}"}
5759
exit "${1:-0}"
5860
}
5961

60-
org_lc() {
61-
LC_ALL="${LC_ALL_ORG}" ${@+"${@}"}
62-
}
63-
6462

6563

6664
option_error() {

release/.w3mplus/bin/framelinkmenu

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,17 +50,15 @@ trap 'end_call 130' 2 # SIGI
5050
trap 'end_call 131' 3 # SIGQUIT
5151
trap 'end_call 143' 15 # SIGTERM
5252

53+
alias org_lc='LC_ALL="${LC_ALL_ORG}"'
54+
5355

5456
end_call() {
5557
trap '' 0 # EXIT
5658
rm -fr -- ${tmpDir:+"${tmpDir}"}
5759
exit "${1:-0}"
5860
}
5961

60-
org_lc() {
61-
LC_ALL="${LC_ALL_ORG}" ${@+"${@}"}
62-
}
63-
6462

6563

6664
option_error() {

release/.w3mplus/bin/getquickmark

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,17 +50,15 @@ trap 'end_call 130' 2 # SIGI
5050
trap 'end_call 131' 3 # SIGQUIT
5151
trap 'end_call 143' 15 # SIGTERM
5252

53+
alias org_lc='LC_ALL="${LC_ALL_ORG}"'
54+
5355

5456
end_call() {
5557
trap '' 0 # EXIT
5658
rm -fr -- ${tmpDir:+"${tmpDir}"}
5759
exit "${1:-0}"
5860
}
5961

60-
org_lc() {
61-
LC_ALL="${LC_ALL_ORG}" ${@+"${@}"}
62-
}
63-
6462

6563

6664
option_error() {

release/.w3mplus/bin/getregister

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,17 +50,15 @@ trap 'end_call 130' 2 # SIGI
5050
trap 'end_call 131' 3 # SIGQUIT
5151
trap 'end_call 143' 15 # SIGTERM
5252

53+
alias org_lc='LC_ALL="${LC_ALL_ORG}"'
54+
5355

5456
end_call() {
5557
trap '' 0 # EXIT
5658
rm -fr -- ${tmpDir:+"${tmpDir}"}
5759
exit "${1:-0}"
5860
}
5961

60-
org_lc() {
61-
LC_ALL="${LC_ALL_ORG}" ${@+"${@}"}
62-
}
63-
6462

6563

6664
option_error() {

release/.w3mplus/bin/gotoline

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,17 +50,15 @@ trap 'end_call 130' 2 # SIGI
5050
trap 'end_call 131' 3 # SIGQUIT
5151
trap 'end_call 143' 15 # SIGTERM
5252

53+
alias org_lc='LC_ALL="${LC_ALL_ORG}"'
54+
5355

5456
end_call() {
5557
trap '' 0 # EXIT
5658
rm -fr -- ${tmpDir:+"${tmpDir}"}
5759
exit "${1:-0}"
5860
}
5961

60-
org_lc() {
61-
LC_ALL="${LC_ALL_ORG}" ${@+"${@}"}
62-
}
63-
6462

6563

6664
option_error() {

release/.w3mplus/bin/gotoparagraph

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,17 +50,15 @@ trap 'end_call 130' 2 # SIGI
5050
trap 'end_call 131' 3 # SIGQUIT
5151
trap 'end_call 143' 15 # SIGTERM
5252

53+
alias org_lc='LC_ALL="${LC_ALL_ORG}"'
54+
5355

5456
end_call() {
5557
trap '' 0 # EXIT
5658
rm -fr -- ${tmpDir:+"${tmpDir}"}
5759
exit "${1:-0}"
5860
}
5961

60-
org_lc() {
61-
LC_ALL="${LC_ALL_ORG}" ${@+"${@}"}
62-
}
63-
6462

6563

6664
option_error() {

release/.w3mplus/bin/htmlescape

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,17 +50,15 @@ trap 'end_call 130' 2 # SIGI
5050
trap 'end_call 131' 3 # SIGQUIT
5151
trap 'end_call 143' 15 # SIGTERM
5252

53+
alias org_lc='LC_ALL="${LC_ALL_ORG}"'
54+
5355

5456
end_call() {
5557
trap '' 0 # EXIT
5658
rm -fr -- ${tmpDir:+"${tmpDir}"}
5759
exit "${1:-0}"
5860
}
5961

60-
org_lc() {
61-
LC_ALL="${LC_ALL_ORG}" ${@+"${@}"}
62-
}
63-
6462

6563

6664
option_error() {

release/.w3mplus/bin/htmlframe

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,17 +50,15 @@ trap 'end_call 130' 2 # SIGI
5050
trap 'end_call 131' 3 # SIGQUIT
5151
trap 'end_call 143' 15 # SIGTERM
5252

53+
alias org_lc='LC_ALL="${LC_ALL_ORG}"'
54+
5355

5456
end_call() {
5557
trap '' 0 # EXIT
5658
rm -fr -- ${tmpDir:+"${tmpDir}"}
5759
exit "${1:-0}"
5860
}
5961

60-
org_lc() {
61-
LC_ALL="${LC_ALL_ORG}" ${@+"${@}"}
62-
}
63-
6462

6563

6664
option_error() {

release/.w3mplus/bin/httpresponse

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,17 +50,15 @@ trap 'end_call 130' 2 # SIGI
5050
trap 'end_call 131' 3 # SIGQUIT
5151
trap 'end_call 143' 15 # SIGTERM
5252

53+
alias org_lc='LC_ALL="${LC_ALL_ORG}"'
54+
5355

5456
end_call() {
5557
trap '' 0 # EXIT
5658
rm -fr -- ${tmpDir:+"${tmpDir}"}
5759
exit "${1:-0}"
5860
}
5961

60-
org_lc() {
61-
LC_ALL="${LC_ALL_ORG}" ${@+"${@}"}
62-
}
63-
6462

6563

6664
option_error() {

release/.w3mplus/bin/incrementuri

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,17 +50,15 @@ trap 'end_call 130' 2 # SIGI
5050
trap 'end_call 131' 3 # SIGQUIT
5151
trap 'end_call 143' 15 # SIGTERM
5252

53+
alias org_lc='LC_ALL="${LC_ALL_ORG}"'
54+
5355

5456
end_call() {
5557
trap '' 0 # EXIT
5658
rm -fr -- ${tmpDir:+"${tmpDir}"}
5759
exit "${1:-0}"
5860
}
5961

60-
org_lc() {
61-
LC_ALL="${LC_ALL_ORG}" ${@+"${@}"}
62-
}
63-
6462

6563

6664
option_error() {

release/.w3mplus/bin/parenturipath

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,17 +50,15 @@ trap 'end_call 130' 2 # SIGI
5050
trap 'end_call 131' 3 # SIGQUIT
5151
trap 'end_call 143' 15 # SIGTERM
5252

53+
alias org_lc='LC_ALL="${LC_ALL_ORG}"'
54+
5355

5456
end_call() {
5557
trap '' 0 # EXIT
5658
rm -fr -- ${tmpDir:+"${tmpDir}"}
5759
exit "${1:-0}"
5860
}
5961

60-
org_lc() {
61-
LC_ALL="${LC_ALL_ORG}" ${@+"${@}"}
62-
}
63-
6462

6563

6664
option_error() {

release/.w3mplus/bin/parsequery

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,17 +50,15 @@ trap 'end_call 130' 2 # SIGI
5050
trap 'end_call 131' 3 # SIGQUIT
5151
trap 'end_call 143' 15 # SIGTERM
5252

53+
alias org_lc='LC_ALL="${LC_ALL_ORG}"'
54+
5355

5456
end_call() {
5557
trap '' 0 # EXIT
5658
rm -fr -- ${tmpDir:+"${tmpDir}"}
5759
exit "${1:-0}"
5860
}
5961

60-
org_lc() {
61-
LC_ALL="${LC_ALL_ORG}" ${@+"${@}"}
62-
}
63-
6462

6563

6664
option_error() {

release/.w3mplus/bin/popuri

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,17 +50,15 @@ trap 'end_call 130' 2 # SIGI
5050
trap 'end_call 131' 3 # SIGQUIT
5151
trap 'end_call 143' 15 # SIGTERM
5252

53+
alias org_lc='LC_ALL="${LC_ALL_ORG}"'
54+
5355

5456
end_call() {
5557
trap '' 0 # EXIT
5658
rm -fr -- ${tmpDir:+"${tmpDir}"}
5759
exit "${1:-0}"
5860
}
5961

60-
org_lc() {
61-
LC_ALL="${LC_ALL_ORG}" ${@+"${@}"}
62-
}
63-
6462

6563

6664
option_error() {

release/.w3mplus/bin/printhtml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,17 +50,15 @@ trap 'end_call 130' 2 # SIGI
5050
trap 'end_call 131' 3 # SIGQUIT
5151
trap 'end_call 143' 15 # SIGTERM
5252

53+
alias org_lc='LC_ALL="${LC_ALL_ORG}"'
54+
5355

5456
end_call() {
5557
trap '' 0 # EXIT
5658
rm -fr -- ${tmpDir:+"${tmpDir}"}
5759
exit "${1:-0}"
5860
}
5961

60-
org_lc() {
61-
LC_ALL="${LC_ALL_ORG}" ${@+"${@}"}
62-
}
63-
6462

6563

6664
option_error() {

release/.w3mplus/bin/psrelative

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,17 +50,15 @@ trap 'end_call 130' 2 # SIGI
5050
trap 'end_call 131' 3 # SIGQUIT
5151
trap 'end_call 143' 15 # SIGTERM
5252

53+
alias org_lc='LC_ALL="${LC_ALL_ORG}"'
54+
5355

5456
end_call() {
5557
trap '' 0 # EXIT
5658
rm -fr -- ${tmpDir:+"${tmpDir}"}
5759
exit "${1:-0}"
5860
}
5961

60-
org_lc() {
61-
LC_ALL="${LC_ALL_ORG}" ${@+"${@}"}
62-
}
63-
6462

6563

6664
option_error() {

0 commit comments

Comments
 (0)