Skip to content

Commit bc6f88c

Browse files
committed
Minor fix
1 parent 8b33ef4 commit bc6f88c

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

doc/cservice.update.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
-- Added canonicalized channel name column
66
ALTER TABLE channels ADD COLUMN canon_name TEXT UNIQUE;
77
UPDATE channels SET canon_name = lower(
8-
replace(replace(replace(replace(name, '[', '{'), ']', '}'), '\\', '|'), '^', '~')
8+
replace(replace(replace(replace(name, '[', '{'), ']', '}'), '\\', '|'), '~', '^')
99
);
1010
ALTER TABLE channels ALTER COLUMN canon_name SET NOT NULL;
1111
CREATE UNIQUE INDEX channels_canon_name_idx ON channels(canon_name);

libgnuworld/misc.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ namespace gnuworld {
4545
/**
4646
* Converts a character to its RFC1459 lowercase equivalent.
4747
* In addition to standard ASCII A-Z -> a-z, RFC1459 defines:
48-
* [ -> {, ] -> }, \ -> |, ^ -> ~
48+
* [ -> {, ] -> }, \ -> |, ~ -> ^
4949
* @param c The character to convert.
5050
* @return The RFC1459-lowercased character.
5151
*/
@@ -62,8 +62,8 @@ unsigned char rfc1459_tolower(unsigned char c) {
6262
return '}';
6363
case '\\':
6464
return '|';
65-
case '^':
66-
return '~';
65+
case '~':
66+
return '^';
6767

6868
default:
6969
return c;

libgnuworld/misc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ using std::string;
4141
/**
4242
* Converts a character to its RFC1459 lowercase equivalent.
4343
* In addition to standard ASCII A-Z -> a-z, RFC1459 defines:
44-
* [ -> {, ] -> }, \\ -> |, ^ -> ~
44+
* [ -> {, ] -> }, \\ -> |, ~ -> ^
4545
* @param c The character to convert.
4646
* @return The RFC1459-lowercased character.
4747
*/

0 commit comments

Comments
 (0)