(defun Man-softhyphen-to-minus ()
;; \255 is some kind of dash in Latin-1.
- (goto-char (point-min))
- (if enable-multibyte-characters
- (while (search-forward "\255" nil t)
- (if (= (preceding-char) ?\255)
- (replace-match "-")))
- (while (search-forward "\255" nil t) (replace-match "-"))))
+ (unless (eq t (compare-strings "latin-" 0 nil
+ current-language-environment 0 6 t))
+ (goto-char (point-min))
+ (while (and (skip-chars-forward "^\255") (not (eobp)))
+ (delete-char 1)
+ (insert ?-))))
(defun Man-fontify-manpage ()
"Convert overstriking and underlining to the correct fonts.