Issue131

classification
Title [Bug: 21.5-b28] XEmacs dired didn't work with FreeBSD ls
Type defect Module dired
Severity inconvenience Platform N/A
Keywords Nosy List
explanation
process
These controls should only be changed by committers and tracker administrators.
Status chatting   Reason
Superseder   Submitted 2007-10-01.07:12:07
Priority normal   Assigned To

Created on 2008-01-19.06:42:58 by FKtPp, last changed 2008-02-19.15:34:12 by FKtPp.

Messages
msg170 [hidden] ([hidden]) Date: 2008-01-19.06:42:58
  Message-ID: <y9labqqqiqe.fsf@deinprogramm.de>
"Stephen J. Turnbull" <stephen@xemacs.org> writes:

> Michael Sperber writes:
>
>  > How's this: I make this configurable (default: no locale-munging), we
>  > push out a new version, which is supposedly much better with the
>  > locales, and the first bug report we get about this, I turn the switch
>  > and cut a new release?
>
> I'm not clear on what you mean.  Locale handling is by definition
> table-driven, and the table is extensible.  So what "better with
> locales" presumably means is that your date parser (are there other
> relevant parsers?) can handle the standard formats in more locales,
> but what are you gonna do if the Steganography locale decides to
> define their date format as YMYMYDYD?

"turn the switch and cut another release", meaning I force the locale to
POSIX.  However, maybe there's another way:

> IIRC, you have a big-ball-of-mud regexp (or list thereof) that tries
> to handle all known date formats.  The conservative approach I want
> (on POSIX systems) is a variable `dired-grokkable-locales' which
> contains a list of regexps that match grokkable locales.  

OK, but is the format of the locale strings sufficiently portable, and
the corresponding output format of ls sufficiently consistent across
systems?  In my experience, locale identifiers are wildly unportable
across platforms, but I can't really say I understand the issue deeply
at this point.

> If you're really that confident that you've got almost all the locales
> in actual use, we could do it the way you suggest.  I would implement
> the configuration to have a variable `dired-ls-locale' (maybe there's
> a better name that doesn't discriminate against Windows).  If nil,
> don't frob the locale.  If set, use that locale.  The Custom widget
> for the variable should contain a list of common locales that the user
> might want (to approximate their own locale, or to substitute a
> familiar locale).  WDYT?

That was my plan.
msg169 [hidden] ([hidden]) Date: 2008-01-19.06:42:58
  Message-ID: <86przyu87n.fsf@yahoo.com.cn>
"Stephen J. Turnbull" <stephen@xemacs.org> writes:

> It's me FKtPp ;) writes:
>
>  > Maybe it's a FreeBSD bug -_-!
>  > 
>  > I diged a little deeper, and findout that the 'ls -l' output something
>  > wrong. At least it didn't work as the manual pages described.
>
> It's a doc bug, I think.  They've simply forgotten to tell your about
> the effect of locale on ls output.
>
> Unfortunately, people seem to think that it's a good idea to localize
> command-line utilities.  This is really dumb, because anybody who
> doesn't know what "Sep" stands for is probably not using ls in the
> first place.  Ie, my guess is that you have your locale set to
> something other than one of the locales dired groks.

Yes, I am using zh_CN.UTF-8 as my current LANG.

>
> Try starting XEmacs with LANG=C xemacs; I bet that will work a lot
>better.
>
> If you want minimal impact on your XEmacs language environment, you
> could try putting `(setenv "LC_TIME" "C")' in your init file.
>

Yes, again. After changed local setting, both ls and dired works as
expected..

_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta@xemacs.org
http://calypso.tux.org/cgi-bin/mailman/listinfo/xemacs-beta
msg168 [hidden] ([hidden]) Date: 2008-01-19.06:42:58
  Message-ID: <86d4vzia0o.fsf@yahoo.com.cn>
================================================================
Dear Bug Team!

The current dired

  dired                1.17   1.17   Manage file systems.

didn't work well with FreeBSD's unix ls, but if I tramp to a remote
linux machine with default GNU ls, all works fine.

================================================================

System Info to help track down your bug:
---------------------------------------

uname -a: FreeBSD localhost.my.domain 7.0-CURRENT FreeBSD 7.0-CURRENT #0: Mon Sep 10 13:27:17 CST 2007     root@localhost.my.domain:/usr/obj/usr/src/sys/PENERIC  i386

configure  '--with-mule'

XEmacs 21.5-b28 "fuki" (+CVS-20070930) configured for `i386-unknown-freebsd7.0'.

Compilation Environment and Installation Defaults:
  Source code location:              /usr/home/fktpp/workspace/xemacs-21.5
  Installation prefix:               /usr/local
  Operating system description file: `s/freebsd.h'
  Machine description file:          `m/intel386.h'
  Compiler version:                  gcc (GCC) 4.2.1 20070719  [FreeBSD]
    - GCC specs file:                specs.
    - Compiler command:              gcc   -Wall -Wno-switch -Wundef -Wsign-compare -Wno-char-subscripts -Wpacked -Wpointer-arith -Wunused-parameter -g  
  libc version:                      
  Relocating allocator for buffers:  yes
  GNU version of malloc:             yes
  Linking with `-z nocombreloc'.
    - Consider configuring with --enable-pdump.

Window System:
  Compiling in support for the X window system:
    - X Windows headers location:                 /usr/X11R6/include
    - X Windows libraries location:               /usr/X11R6/lib
    - Handling WM_COMMAND properly.
  Compiling in support for the Athena widget set:
    - Athena headers location:                    X11/Xaw
    - Athena library to link:                     Xaw
  Using Lucid menubars.
  Using Lucid scrollbars.
  Using Athena dialog boxes.
  Using Athena native widgets.

TTY:
  Compiling in support for ncurses.

Images:
  Compiling in support for GIF  images (builtin).
  Compiling in support for XPM  images.
  Compiling in support for PNG  images.
  Compiling in support for JPEG images.
  Compiling in support for TIFF images.

Sound:
  Compiling in support for sound (native).
  Compiling in support for NAS (network audio system).

Databases:
  Compiling in support for Berkeley database.
  Compiling in support for GNU DBM.
  Compiling in support for LDAP.
  Compiling in support for PostgreSQL.
    - Using PostgreSQL header file:  libpq-fe.h
    - Using PostgreSQL V7 bindings.

Internationalization:
  Compiling in support for Mule (multi-lingual Emacs).
  Compiling in support for XIM (X11R5+ I18N input method).
    - Using raw Xlib to provide XIM support.

Mail:
  Compiling in support for "flock" mail spool file locking method.

Other Features:
  Inhibiting IPv6 canonicalization at startup.
  Compiling in support for dynamic shared object modules.
  Using the new GC mark algorithms (KKCC).
  WARNING: ---------------------------------------------------------
  WARNING: The new algorithms are experimental. They are enabled by
  WARNING: default for this release. Use `--disable-kkcc' to
  WARNING: turn it off.
  WARNING: ---------------------------------------------------------
  Compiling in support for extra debugging code.
  Compiling in support for runtime error checking.
  WARNING: ---------------------------------------------------------
  WARNING: XEmacs will run noticeably more slowly as a result.
  WARNING: Error checking is on by default for XEmacs beta releases.
  WARNING: ---------------------------------------------------------

Load-Path Lisp Shadows:
----------------------
(/home/fktpp/.xemacs/mule-packages/lisp/mule-base/china-util
/usr/local/share/xemacs-21.5-b28/lisp/mule/china-util
/home/fktpp/.xemacs/mule-packages/lisp/mule-base/cyril-util
/usr/local/share/xemacs-21.5-b28/lisp/mule/cyril-util
/home/fktpp/.xemacs/mule-packages/lisp/mule-base/ethio-util
/usr/local/share/xemacs-21.5-b28/lisp/mule/ethio-util
/home/fktpp/.xemacs/mule-packages/lisp/mule-base/japan-util
/usr/local/share/xemacs-21.5-b28/lisp/mule/japan-util
/home/fktpp/.xemacs/mule-packages/lisp/mule-base/korea-util
/usr/local/share/xemacs-21.5-b28/lisp/mule/korea-util
/home/fktpp/.xemacs/mule-packages/lisp/mule-base/viet-util
/usr/local/share/xemacs-21.5-b28/lisp/mule/viet-util
/home/fktpp/.xemacs/xemacs-packages/lisp/build/build-report
/usr/local/share/xemacs-21.5-b28/lisp/build-report
/home/fktpp/.xemacs/xemacs-packages/lisp/xemacs-base/regexp-opt
/usr/local/share/xemacs-21.5-b28/lisp/regexp-opt
/home/fktpp/.xemacs/xemacs-packages/lisp/xemacs-base/easy-mmode
/usr/local/share/xemacs-21.5-b28/lisp/easy-mmode)

Internationalization Settings:
-------------------------

Environment:

  Value of LC_ALL      : nil
  Value of LC_COLLATE  : nil
  Value of LC_CTYPE    : nil
  Value of LC_MESSAGES : nil
  Value of LC_MONETARY : nil
  Value of LC_NUMERIC  : nil
  Value of LC_TIME     : nil
  Value of LANG        : zh_CN.UTF-8

Lisp locale settings:

  current-language-environment      => "Chinese-GB (UTF-8)"
  default-buffer-file-coding-system => utf-8
  default-process-coding-system     => (undecided . utf-8)
  (current-locale)                  => "zh_CN.UTF-8"
  keyboard-coding-system            => utf-8
  terminal-coding-system            => utf-8
  (coding-priority-list)            =>
    (utf-8 iso-8-2 big5 iso-7 utf-16-little-endian-bom utf-16-bom
    utf-8-bom no-conversion iso-8-1 iso-8-designate iso-lock-shift
    shift-jis utf-16-little-endian utf-16 ucs-4)

Coding system aliases:

  'native                              is aliased to utf-8
  'file-name                           is aliased to native
  'mswindows-multibyte-system-default  is not a coding system alias

Installed XEmacs Packages:
-------------------------
(xlib ver: 1.14 upstream: lg@xwem.org--2005/xlib--main--2.1--version-0)
(xemacs-devel ver: 1.76 upstream: No-Upstream-Ver)
(xemacs-base ver: 2.11 upstream: No-Upstream-Ver)
(vc ver: 1.43 upstream: No-Upstream-Ver)
(tramp ver: 1.39 upstream: 2.0.56)
(time ver: 1.14 upstream: 1.17)
(text-modes ver: 1.95 upstream: No-Upstream-Ver)
(texinfo ver: 1.3 upstream: No-Upstream-Ver)
(sh-script ver: 1.22 upstream: 2.0f)
(sasl ver: 1.16 upstream: 1.14.4)
(ruby-modes ver: 1.02 upstream: 1.6.8)
(python-modes ver: 1.09 upstream: No-Upstream-Ver)
(psgml ver: 1.45 upstream: 1.3.2)
(prog-modes ver: 2.14 upstream: No-Upstream-Ver)
(perl-modes ver: 1.1 upstream: No-Upstream-Ver)
(pcomplete ver: 1.04 upstream: 1.1.6)
(pcl-cvs ver: 1.67 upstream: R-2_9_9)
(ocaml ver: 0.06 upstream: 3.06)
(net-utils ver: 1.53 upstream: N/A)
(mailcrypt ver: 2.14 upstream: 3.5.8)
(mail-lib ver: 1.79 upstream: No-Upstream-Ver)
(ispell ver: 1.32 upstream: 3.6)
(gnus ver: 1.91 upstream: 5.10.8)
(fsf-compat ver: 1.15 upstream: No-Upstream-Ver)
(forms ver: 1.15 upstream: 2.37)
(footnote ver: 1.16 upstream: 0.18x)
(eterm ver: 1.17 upstream: No-Upstream-Ver)
(eshell ver: 1.12 upstream: 2.4.1)
(erc ver: 0.21 upstream: Version 5.1.2 Revision: 1.796.2.6)
(emerge ver: 1.11 upstream: No-Upstream-Ver)
(efs ver: 1.33 upstream: 1.23)
(edit-utils ver: 2.38 upstream: No-Upstream-Ver)
(ediff ver: 1.71 upstream: 2.75)
(edebug ver: 1.22 upstream: No-Upstream-Ver)
(ecrypto ver: 0.2 upstream: 2.0)
(easypg ver: 1.01 upstream: 0.0.15)
(dired ver: 1.17 upstream: 7.13)
(debug ver: 1.18 upstream: No-Upstream-Ver)
(cookie ver: 1.15 upstream: No-Upstream-Ver)
(cc-mode ver: 1.45 upstream: 5.30.10)
(calendar ver: 1.34 upstream: No-Upstream-Ver)
(calc ver: 1.26 upstream: 2.02fX3)
(build ver: 1.14 upstream: 2.02)
(apel ver: 1.33 upstream: 10.6)
(mule-base ver: 1.52 upstream: No-Upstream-Ver)

Installed Modules:
-----------------

Features:
--------

(mail-abbrevs xemacsbug shadow sendmail rfc822 dired-faces
dired-xemacs dired font disp-table lazy-shot font-lock time cus-face
mwheel china-util xlib-autoloads xemacs-devel-autoloads
xemacs-base-autoloads vc-autoloads tramp-autoloads time-autoloads
text-modes-autoloads texinfo-autoloads sh-script-autoloads
sasl-autoloads ruby-modes-autoloads python-modes-autoloads
psgml-autoloads prog-modes-autoloads perl-modes-autoloads
pcomplete-autoloads pcl-cvs-autoloads ocaml-autoloads
net-utils-autoloads mailcrypt-autoloads mail-lib-autoloads
ispell-autoloads gnus-autoloads fsf-compat-autoloads forms-autoloads
footnote-autoloads eterm-autoloads eshell-autoloads erc-autoloads
emerge-autoloads efs-autoloads edit-utils-autoloads ediff-autoloads
edebug-autoloads ecrypto-autoloads easypg-autoloads dired-autoloads
debug-autoloads cookie-autoloads cc-mode-autoloads calendar-autoloads
calc-autoloads build-autoloads apel-autoloads mule-base-autoloads
modules-autoloads mule-autoloads auto-autoloads auto-show fontl-hooks
canna-leim tibetan slovenian czech romanian lao devanagari indian
cyrillic code-cmds gutter-items menubar-items x-menubar mode-motion
mouse behavior itimer auto-save lisp-mode easymenu easy-mmode
iso8859-1 page buff-menu lib-complete loadhist cus-file derived
newcomment rsz-minibuf env text-props frame obsolete cus-start custom
widget cl-extra cl cl-19 packages backquote unicode lucid-scrollbars
cut-buffer lucid-menubars athena-dialogs x c-balloon-help tty-frames
tty toolbar nas-sound native-sound scrollbar unix-processes multicast
network-streams subprocesses modules menu-accelerator-support menubar
berkeley-db dbm md5 xemacs xim mule gutter tiff png gif jpeg xpm xbm
lisp-float-type file-coding berkeley-unix dialog devices window-system
base64)

Recent keystrokes:
-----------------

C-x d RET p p n RET misc-user

Recent messages (most recent first):
-----------------------------------

Parsing /home/fktpp/.mailrc... done
Parsing /home/fktpp/.mail_aliases... done
Parsing /home/fktpp/.mail_aliases...
Parsing /home/fktpp/.mailrc...
Warning: 

Defaulting to the GNU Emacs-derived `sendmail.el' mail client. This facility,
while part of base XEmacs, is heinously underfeatured, and not going to get
better in the medium term. We include it so that bug reports work without
packages; we suggest that you choose and/or install one of the other mail
clients from packages if you're doing something other than M-x
report-xemacs-bug , or even if you are reporting bugs regularly.

To choose a package from those installed, click on "Options" ->
"Internet" -> "Compose Mail With ..." and decide on one from the
list. Gnus and VM are full-featured and have active user communities.

To disable this warning and stick with the old behavior, you can explicitly
initialize `mail-user-agent' to 'sendmail-user-agent . 
Loading xemacsbug...done
No file on this line
Loading xemacsbug...
Reading directory /usr/home/fktpp/...done
Reading directory /usr/home/fktpp/...
Loading dired...done
Loading dired-mule...done
Loading dired-mule...
Loading dired...
Loading font...done
Loading font...
Loading time...done
Loading cus-face...done
Loading cus-face...
Loading time...

_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta@xemacs.org
http://calypso.tux.org/cgi-bin/mailman/listinfo/xemacs-beta
History
Date User Action Args
2008-02-19 15:34:12FKtPpsetpriority: normal
platform: + N/A
type: defect
severity: inconvenience
module: + dired
2008-01-19 06:42:58sperbersetmessages: + msg170
2008-01-19 06:42:58FKtPpsetstatus: new -> chatting
messages: + msg169
2008-01-19 06:42:58FKtPpcreate