Synch with Oort Gnus.
[elisp/gnus.git-] / lisp / gnus-score.el
index 4ad0472..3dca790 100644 (file)
@@ -2596,8 +2596,10 @@ GROUP using BNews sys file syntax."
              ;; too much.
              (delete-char (min (1- (point-max)) klen))
            (goto-char (point-max))
-           (if (search-backward (char-to-string directory-sep-char) nil t)
-               (delete-region (1+ (point)) (point-min))))
+           (if (search-backward (string directory-sep-char) nil t)
+               (delete-region (1+ (point)) (point-min))
+             (gnus-message 1 "Can't find directory separator in %s"
+                           (car sfiles))))
          ;; If short file names were used, we have to translate slashes.
          (goto-char (point-min))
          (let ((regexp (concat