mirror of
https://salsa.debian.org/dskoll/remind.git
synced 2026-04-17 23:08:40 +02:00
Remove support for character sets other than UTF-8.
This commit is contained in:
52
build.tk
52
build.tk
@@ -33,10 +33,6 @@ proc SetConfigDefaults {} {
|
|||||||
set Config(DEFAULT_PAGE) "Letter"
|
set Config(DEFAULT_PAGE) "Letter"
|
||||||
set Config(DATESEP) "-"
|
set Config(DATESEP) "-"
|
||||||
set Config(TIMESEP) ":"
|
set Config(TIMESEP) ":"
|
||||||
set Config(ISOLATIN1) 0
|
|
||||||
set Config(IBMEXTENDED) 0
|
|
||||||
set Config(ISOLATIN2) 0
|
|
||||||
set Config(IBM852) 0
|
|
||||||
set Config(NORTHERN_HEMISPHERE) 1
|
set Config(NORTHERN_HEMISPHERE) 1
|
||||||
set Config(WESTERN_HEMISPHERE) 1
|
set Config(WESTERN_HEMISPHERE) 1
|
||||||
set Config(LANGUAGE) "English"
|
set Config(LANGUAGE) "English"
|
||||||
@@ -233,19 +229,6 @@ proc CreateOptionsDialog { w } {
|
|||||||
grid configure $w.timelabel -row 2 -column 0 -sticky e
|
grid configure $w.timelabel -row 2 -column 0 -sticky e
|
||||||
grid configure $w.time -row 2 -column 1 -sticky nsew
|
grid configure $w.time -row 2 -column 1 -sticky nsew
|
||||||
|
|
||||||
label $w.charlabel -text "Character set: "
|
|
||||||
menubutton $w.char -text "ISO 8859-1" -indicatoron 1 -relief raised \
|
|
||||||
-menu $w.char.menu
|
|
||||||
menu $w.char.menu -tearoff 0
|
|
||||||
$w.char.menu add command -label "ISO 8859-1" -command "$w.char configure -text {ISO 8859-1}"
|
|
||||||
$w.char.menu add command -label "ISO 8859-2" -command "$w.char configure -text {ISO 8859-2}"
|
|
||||||
$w.char.menu add command -label "IBM Extended" -command "$w.char configure -text {IBM Extended}"
|
|
||||||
$w.char.menu add command -label "IBM CPI-852" -command "$w.char configure -text {ISO 8859-2}"
|
|
||||||
$w.char.menu add command -label "Plain ASCII" -command "$w.char configure -text {Plain ASCII}"
|
|
||||||
|
|
||||||
grid configure $w.charlabel -row 3 -column 0 -sticky e
|
|
||||||
grid configure $w.char -row 3 -column 1 -sticky nsew
|
|
||||||
|
|
||||||
label $w.langlabel -text "Language: "
|
label $w.langlabel -text "Language: "
|
||||||
menubutton $w.lang -text $Config(LANGUAGE) -indicatoron 1 -relief raised \
|
menubutton $w.lang -text $Config(LANGUAGE) -indicatoron 1 -relief raised \
|
||||||
-menu $w.lang.menu
|
-menu $w.lang.menu
|
||||||
@@ -268,8 +251,8 @@ proc CreateOptionsDialog { w } {
|
|||||||
$w.lang.menu add command -label $lang -command [list $w.lang configure -text $lang]
|
$w.lang.menu add command -label $lang -command [list $w.lang configure -text $lang]
|
||||||
}
|
}
|
||||||
|
|
||||||
grid configure $w.langlabel -row 4 -column 0 -sticky e
|
grid configure $w.langlabel -row 3 -column 0 -sticky e
|
||||||
grid configure $w.lang -row 4 -column 1 -sticky nsew
|
grid configure $w.lang -row 3 -column 1 -sticky nsew
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -446,21 +429,6 @@ proc CreateCustomH {} {
|
|||||||
set Config(DATESEP) [$Options.date cget -text]
|
set Config(DATESEP) [$Options.date cget -text]
|
||||||
set Config(TIMESEP) [$Options.time cget -text]
|
set Config(TIMESEP) [$Options.time cget -text]
|
||||||
|
|
||||||
switch -- [$Options.char cget -text] {
|
|
||||||
"ISO 8859-1" {
|
|
||||||
set Config(ISOLATIN1) 1
|
|
||||||
}
|
|
||||||
"ISO 8859-2" {
|
|
||||||
set Config(ISOLATIN2) 1
|
|
||||||
}
|
|
||||||
"IBM CPI-852" {
|
|
||||||
set Config(IBM852) 1
|
|
||||||
}
|
|
||||||
"IBM Extended" {
|
|
||||||
set Config(IBMEXTENDED) 1
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
while {[gets $in line] != -1} {
|
while {[gets $in line] != -1} {
|
||||||
switch -glob -- $line {
|
switch -glob -- $line {
|
||||||
"#define LAT_DEG *" {
|
"#define LAT_DEG *" {
|
||||||
@@ -495,22 +463,6 @@ proc CreateCustomH {} {
|
|||||||
puts $out "#define TIMESEP '$Config(TIMESEP)'"
|
puts $out "#define TIMESEP '$Config(TIMESEP)'"
|
||||||
.msgs insert end "#define TIMESEP '$Config(TIMESEP)'\n"
|
.msgs insert end "#define TIMESEP '$Config(TIMESEP)'\n"
|
||||||
}
|
}
|
||||||
"#define ISOLATIN1 *" {
|
|
||||||
puts $out "#define ISOLATIN1 $Config(ISOLATIN1)"
|
|
||||||
.msgs insert end "#define ISOLATIN1 $Config(ISOLATIN1)\n"
|
|
||||||
}
|
|
||||||
"#define ISOLATIN2 *" {
|
|
||||||
puts $out "#define ISOLATIN2 $Config(ISOLATIN2)"
|
|
||||||
.msgs insert end "#define ISOLATIN2 $Config(ISOLATIN2)\n"
|
|
||||||
}
|
|
||||||
"#define IBM852 *" {
|
|
||||||
puts $out "#define IBM852 $Config(IBM852)"
|
|
||||||
.msgs insert end "#define IBM852 $Config(IBM852)\n"
|
|
||||||
}
|
|
||||||
"#define IBMEXTENDED *" {
|
|
||||||
puts $out "#define IBMEXTENDED $Config(IBMEXTENDED)"
|
|
||||||
.msgs insert end "#define IBMEXTENDED $Config(IBMEXTENDED)\n"
|
|
||||||
}
|
|
||||||
default {
|
default {
|
||||||
puts $out $line
|
puts $out $line
|
||||||
}
|
}
|
||||||
|
|||||||
33
src/custom.h
33
src/custom.h
@@ -58,39 +58,6 @@
|
|||||||
#define DATETIMESEP '@'
|
#define DATETIMESEP '@'
|
||||||
/* #define DATETIMESEP '/' */
|
/* #define DATETIMESEP '/' */
|
||||||
|
|
||||||
/*---------------------------------------------------------------------*/
|
|
||||||
/* ISOLATIN1: define it to 1 if you use the */
|
|
||||||
/* ISO 8859-1 character set instead of ASCII. */
|
|
||||||
/*---------------------------------------------------------------------*/
|
|
||||||
#define ISOLATIN1 1
|
|
||||||
|
|
||||||
/*---------------------------------------------------------------------*/
|
|
||||||
/* ISOLATIN2: define it to 1 if you use the */
|
|
||||||
/* ISO 8859-2 character set instead of ASCII. */
|
|
||||||
/* NOT ALL LANGUAGE MODULES SUPPORT THIS. Note that at most one of */
|
|
||||||
/* ISOLATIN1, ISOLATIN2, IBMEXTENDED and IBM852 should be 1; if more */
|
|
||||||
/* then one are defined as 1, the results are unspecified. */
|
|
||||||
/*---------------------------------------------------------------------*/
|
|
||||||
#define ISOLATIN2 0
|
|
||||||
|
|
||||||
/*---------------------------------------------------------------------*/
|
|
||||||
/* IBMEXTENDED: define as 1 if your system uses the IBM extended */
|
|
||||||
/* character set. */
|
|
||||||
/* NOT ALL LANGUAGE MODULES SUPPORT THIS. Note that at most one of */
|
|
||||||
/* ISOLATIN1, ISOLATIN2, IBMEXTENDED and IBM852 should be 1; if more */
|
|
||||||
/* then one are defined as 1, the results are unspecified. */
|
|
||||||
/*---------------------------------------------------------------------*/
|
|
||||||
#define IBMEXTENDED 0
|
|
||||||
|
|
||||||
/*---------------------------------------------------------------------*/
|
|
||||||
/* IBM852: define as 1 if your system uses the IBM CPI-852 extended */
|
|
||||||
/* character set. */
|
|
||||||
/* NOT ALL LANGUAGE MODULES SUPPORT THIS. Note that at most one of */
|
|
||||||
/* ISOLATIN1, ISOLATIN2, IBMEXTENDED and IBM852 should be 1; if more */
|
|
||||||
/* then one are defined as 1, the results are unspecified. */
|
|
||||||
/*---------------------------------------------------------------------*/
|
|
||||||
#define IBM852 0
|
|
||||||
|
|
||||||
/*---------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------*/
|
||||||
/* WANT_U_OPTION: Comment out the next define to permanently disable */
|
/* WANT_U_OPTION: Comment out the next define to permanently disable */
|
||||||
/* the -u option. */
|
/* the -u option. */
|
||||||
|
|||||||
@@ -58,39 +58,6 @@
|
|||||||
#define DATETIMESEP '@'
|
#define DATETIMESEP '@'
|
||||||
/* #define DATETIMESEP '/' */
|
/* #define DATETIMESEP '/' */
|
||||||
|
|
||||||
/*---------------------------------------------------------------------*/
|
|
||||||
/* ISOLATIN1: define it to 1 if you use the */
|
|
||||||
/* ISO 8859-1 character set instead of ASCII. */
|
|
||||||
/*---------------------------------------------------------------------*/
|
|
||||||
#define ISOLATIN1 1
|
|
||||||
|
|
||||||
/*---------------------------------------------------------------------*/
|
|
||||||
/* ISOLATIN2: define it to 1 if you use the */
|
|
||||||
/* ISO 8859-2 character set instead of ASCII. */
|
|
||||||
/* NOT ALL LANGUAGE MODULES SUPPORT THIS. Note that at most one of */
|
|
||||||
/* ISOLATIN1, ISOLATIN2, IBMEXTENDED and IBM852 should be 1; if more */
|
|
||||||
/* then one are defined as 1, the results are unspecified. */
|
|
||||||
/*---------------------------------------------------------------------*/
|
|
||||||
#define ISOLATIN2 0
|
|
||||||
|
|
||||||
/*---------------------------------------------------------------------*/
|
|
||||||
/* IBMEXTENDED: define as 1 if your system uses the IBM extended */
|
|
||||||
/* character set. */
|
|
||||||
/* NOT ALL LANGUAGE MODULES SUPPORT THIS. Note that at most one of */
|
|
||||||
/* ISOLATIN1, ISOLATIN2, IBMEXTENDED and IBM852 should be 1; if more */
|
|
||||||
/* then one are defined as 1, the results are unspecified. */
|
|
||||||
/*---------------------------------------------------------------------*/
|
|
||||||
#define IBMEXTENDED 0
|
|
||||||
|
|
||||||
/*---------------------------------------------------------------------*/
|
|
||||||
/* IBM852: define as 1 if your system uses the IBM CPI-852 extended */
|
|
||||||
/* character set. */
|
|
||||||
/* NOT ALL LANGUAGE MODULES SUPPORT THIS. Note that at most one of */
|
|
||||||
/* ISOLATIN1, ISOLATIN2, IBMEXTENDED and IBM852 should be 1; if more */
|
|
||||||
/* then one are defined as 1, the results are unspecified. */
|
|
||||||
/*---------------------------------------------------------------------*/
|
|
||||||
#define IBM852 0
|
|
||||||
|
|
||||||
/*---------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------*/
|
||||||
/* WANT_U_OPTION: Comment out the next define to permanently disable */
|
/* WANT_U_OPTION: Comment out the next define to permanently disable */
|
||||||
/* the -u option. */
|
/* the -u option. */
|
||||||
|
|||||||
Reference in New Issue
Block a user