Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Why dired does not work?

dired
0
Posted

Why dired does not work?

0

Dired scans the output of ls, but the output should not contain Japanese. Akira Kon &ltkon&#64quincy.d1.bs2.mt.nec.co.jp&gt writes: My machine is a SVR4 and ls gives an output like the following when LANG is set to Japanese. -rw-rw-r– 1 kon com 1002 10 $B7n (B30 $BF| (B 00 $B;~ (B22 $BJ, (B .bashrc -rw-r–r– 1 kon com 26387 11 $B7n (B18 $BF| (B 10 $B;~ (B06 $BJ, (B .emacs (The dates are in Japanese, you know.) But dired.el has a fragment of codes like: (defun dired-get-filename (&optional localp no-error-if-not-filep) (…deleted…) (beginning-of-line) (if (re-search-forward “\\(Jan\\|Feb\\|Mar\\|Apr\\|May\\|Jun\\|Jul\\|Aug\\|Sep\\|Oct\\|Nov\\|Dec\\)[ ]+[0-9]+” eol t) (progn (skip-chars-forward ” “) and this means, in short, that dired does not accept the output of Japanese `ls -l’. I believe that the following modification works for dired, but I am afraid that there are other programs that scan the output of UNIX commands.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.