(let* ((choices
(mapcar
(lambda (g)
- (if (string-match "[^\000-\177]" g)
+ (if (string-match "[^[:ascii:]]" g)
(gnus-group-decoded-name g)
g))
(cond ((listp collection)
(remhash group-name grouphash)
(puthash (encode-coding-string group-name 'utf-8-emacs)
val grouphash))
- (when (string-match-p "[^\000-\177]" group-name)
+ (when (string-match-p "[^[:ascii:]]" group-name)
(remhash group-name grouphash)
(puthash (decode-coding-string group-name 'utf-8-emacs) val grouphash))))
grouphash))
(when (seq-some (lambda (g)
(if encode
(multibyte-string-p g)
- (string-match-p "[^\000-\177]" g)))
+ (string-match-p "[^[:ascii:]]" g)))
groups)
;; Create a replacement DATA.
(push (list id (cons (cons 'group (mapcar
(gnus-info-set-method info (car rest))
(push method methods)))
;; Check for encoded group names and decode them.
- (when (string-match-p "[^\000-\177]" (setq gname (car info)))
+ (when (string-match-p "[^[:ascii:]]" (setq gname (car info)))
(let ((decoded (gnus-group-decoded-name gname)))
(setf gname decoded
(car info) decoded)))
(skip-chars-forward " \t")
(memq (char-after)
'(?= ?x ?j)))))
- (progn (when (string-match-p "[^\000-\177]" group)
+ (progn (when (string-match-p "[^[:ascii:]]" group)
;; NNTP servers may give us encoded group
;; names.
(setq group (gnus-group-decoded-name group)))
(lambda (elt)
(cons (car elt)
(mapcar (lambda (g)
- (if (string-match-p "[^\000-\177]" g)
+ (if (string-match-p "[^[:ascii:]]" g)
(gnus-group-decoded-name g)
g))
(cdr elt))))
(concat
msg-id (if msg-id " (")
(if (car name)
- (if (string-match "[^\000-\177]" (car name))
+ (if (string-match "[^[:ascii:]]" (car name))
;; Quote a string containing non-ASCII characters.
;; It will make the RFC2047 encoder cause an error
;; if there are special characters.