all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#22514: emacs INFO pages have "?"s instead of "'"s
@ 2016-02-01  3:21 myglc2
  2016-02-01 18:03 ` myglc2
  2016-02-02 14:24 ` Ludovic Courtès
  0 siblings, 2 replies; 5+ messages in thread
From: myglc2 @ 2016-02-01  3:21 UTC (permalink / raw)
  To: 22514

In emacs INFO pages, single quotes "'" appear as question marks "?" and
'echo $LANG' returns a blank line.

I am running guixSD on a headless server & logging in via the iTerm2
terminal emulator running on Max OS X... e.g. 'ssh' & 'emacs -nw'

When I log into an identical server running Debian 8, emacs INFO "'"
quotes are normal and 'echo $LANG' returns "en_US.UTF-8".

ITerm is set to UTF-8 and xterm-256color.

I am running the configuration shown below built earlier today as shown
further below.

Note: I also tried the alternate form, '(locale "en_US.utf8")', which is
commented out in the config, and observed the same behavior.

Many Thanks - George

config.9.scm:
vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
;; This is an operating system configuration template
;; for a "bare bones" setup, with no X11 display server.

(use-modules (gnu))
(use-service-modules networking ssh)
(use-package-modules admin)
(use-package-modules disk ssh rsync wget screen)
(use-package-modules emacs)
(use-package-modules guile)
(use-package-modules version-control)
(use-package-modules graphviz)

(operating-system
  (host-name "g1")
  (timezone "America/New_York")
  (locale "en_US.UTF-8")
  ;; (locale "en_US.utf8")

  ;; Assuming /dev/sdX is the target hard disk, and "root" is
  ;; the label of the target root file system.
  (bootloader (grub-configuration (device "/dev/sda")))
  (file-systems (cons (file-system
                        (device "g1sd")
                        (title 'label)
                        (mount-point "/")
                        (type "ext4"))
                      %base-file-systems))

  ;; This is where user accounts are specified.  The "root"
  ;; account is implicit, and is initially created with the
  ;; empty password.
  (users (cons (user-account
                (name "glc")
                (comment "g l c")
                (group "users")

                ;; Adding the account to the "wheel" group
                ;; makes it a sudoer.  Adding it to "audio"
                ;; and "video" allows the user to play sound
                ;; and access the webcam.
                (supplementary-groups '("wheel"
                                        "audio" "video"))
                (home-directory "/home/glc"))
               %base-user-accounts))

  ;; Globally-installed packages.
  (packages (cons*
	     glibc-utf8-locales
	     parted
	     openssh
	     rsync
	     wget
	     screen
	     emacs
	     ;; emacs-flycheck
	     emacs-w3m geiser git-modes guile-emacs guile-for-guile-emacs magit paredit
	     git git-manpages magit
	     graphviz
	     %base-packages
	     )
	    )

  ;; Add services to the baseline: a DHCP client and
  ;; an SSH server.
  (services (cons* (dhcp-client-service)
                   (lsh-service #:port-number 22)
                   %base-services)))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^


root@g1 ~# guix pull

Starting download of /tmp/guix-file.wq8eGI
From http://git.savannah.gnu.org/cgit/guix.git/snapshot/master.tar.gz...
 master.tar.gz                               1.8MiB/s 00:05 | 9.7MiB transferred
unpacking '/gnu/store/z7fyrgm8f03ns5ils40cw0p1480ddh99-guix-latest.tar.gz'...
Guix already up to date
root@g1 ~# guix system reconfigure config.9.scm
substitute: updating list of substitutes from 'http://hydra.gnu.org'... 100.0%
The following derivation will be built:
   /gnu/store/s70k68pvgnc72vzbqldfns0qinh4563k-grub.cfg.drv
/gnu/store/gla18i7ii7krc548j0yskg834i6d8fxv-system
/gnu/store/wx2piqvbys781q2k4f2k6gpjp0dpf2xb-grub.cfg
/gnu/store/6jdnd5c830qggwdmrkfl6kgz79jxymzy-grub-2.00
activating system...
setting up setuid programs in '/run/setuid-programs'...
populating /etc from /gnu/store/z9c8lfifwbgcwrlsvhr10s6vjbnkjz43-etc...
usermod: no changes
usermod: no changes
usermod: no changes
making '/gnu/store/gla18i7ii7krc548j0yskg834i6d8fxv-system' the current system...
Installation finished. No error reported.
root@g1 ~# exit
exit

Process shell finished

^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#22514: emacs INFO pages have "?"s instead of "'"s
  2016-02-01  3:21 bug#22514: emacs INFO pages have "?"s instead of "'"s myglc2
@ 2016-02-01 18:03 ` myglc2
  2016-02-02 14:24 ` Ludovic Courtès
  1 sibling, 0 replies; 5+ messages in thread
From: myglc2 @ 2016-02-01 18:03 UTC (permalink / raw)
  To: 22514

myglc2 <myglc2@gmail.com> writes:

> In emacs INFO pages, single quotes "'" appear as question marks "?" and
> 'echo $LANG' returns a blank line.

Note/clarification: the problem is only with user accounts. root emacs
INFO "'" quotes are normal and 'echo $LANG' returns "en_US.UTF-8".

> I am running guixSD on a headless server & logging in via the iTerm2
> terminal emulator running on Max OS X... e.g. 'ssh' & 'emacs -nw'
>
> When I log into an identical server running Debian 8, emacs INFO "'"
> quotes are normal and 'echo $LANG' returns "en_US.UTF-8".
>
> ITerm is set to UTF-8 and xterm-256color.
>
> I am running the configuration shown below built earlier today as shown
> further below.
>
> Note: I also tried the alternate form, '(locale "en_US.utf8")', which is
> commented out in the config, and observed the same behavior.
>
> Many Thanks - George
>
> config.9.scm:
> vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
> vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
> ;; This is an operating system configuration template
> ;; for a "bare bones" setup, with no X11 display server.
>
> (use-modules (gnu))
> (use-service-modules networking ssh)
> (use-package-modules admin)
> (use-package-modules disk ssh rsync wget screen)
> (use-package-modules emacs)
> (use-package-modules guile)
> (use-package-modules version-control)
> (use-package-modules graphviz)
>
> (operating-system
>   (host-name "g1")
>   (timezone "America/New_York")
>   (locale "en_US.UTF-8")
>   ;; (locale "en_US.utf8")
>
>   ;; Assuming /dev/sdX is the target hard disk, and "root" is
>   ;; the label of the target root file system.
>   (bootloader (grub-configuration (device "/dev/sda")))
>   (file-systems (cons (file-system
>                         (device "g1sd")
>                         (title 'label)
>                         (mount-point "/")
>                         (type "ext4"))
>                       %base-file-systems))
>
>   ;; This is where user accounts are specified.  The "root"
>   ;; account is implicit, and is initially created with the
>   ;; empty password.
>   (users (cons (user-account
>                 (name "glc")
>                 (comment "g l c")
>                 (group "users")
>
>                 ;; Adding the account to the "wheel" group
>                 ;; makes it a sudoer.  Adding it to "audio"
>                 ;; and "video" allows the user to play sound
>                 ;; and access the webcam.
>                 (supplementary-groups '("wheel"
>                                         "audio" "video"))
>                 (home-directory "/home/glc"))
>                %base-user-accounts))
>
>   ;; Globally-installed packages.
>   (packages (cons*
> 	     glibc-utf8-locales
> 	     parted
> 	     openssh
> 	     rsync
> 	     wget
> 	     screen
> 	     emacs
> 	     ;; emacs-flycheck
> 	     emacs-w3m geiser git-modes guile-emacs guile-for-guile-emacs magit paredit
> 	     git git-manpages magit
> 	     graphviz
> 	     %base-packages
> 	     )
> 	    )
>
>   ;; Add services to the baseline: a DHCP client and
>   ;; an SSH server.
>   (services (cons* (dhcp-client-service)
>                    (lsh-service #:port-number 22)
>                    %base-services)))
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>
>
> root@g1 ~# guix pull
>
> Starting download of /tmp/guix-file.wq8eGI
> From http://git.savannah.gnu.org/cgit/guix.git/snapshot/master.tar.gz...
>  master.tar.gz                               1.8MiB/s 00:05 | 9.7MiB transferred
> unpacking '/gnu/store/z7fyrgm8f03ns5ils40cw0p1480ddh99-guix-latest.tar.gz'...
> Guix already up to date
> root@g1 ~# guix system reconfigure config.9.scm
> substitute: updating list of substitutes from 'http://hydra.gnu.org'... 100.0%
> The following derivation will be built:
>    /gnu/store/s70k68pvgnc72vzbqldfns0qinh4563k-grub.cfg.drv
> /gnu/store/gla18i7ii7krc548j0yskg834i6d8fxv-system
> /gnu/store/wx2piqvbys781q2k4f2k6gpjp0dpf2xb-grub.cfg
> /gnu/store/6jdnd5c830qggwdmrkfl6kgz79jxymzy-grub-2.00
> activating system...
> setting up setuid programs in '/run/setuid-programs'...
> populating /etc from /gnu/store/z9c8lfifwbgcwrlsvhr10s6vjbnkjz43-etc...
> usermod: no changes
> usermod: no changes
> usermod: no changes
> making '/gnu/store/gla18i7ii7krc548j0yskg834i6d8fxv-system' the current system...
> Installation finished. No error reported.
> root@g1 ~# exit
> exit
>
> Process shell finished

^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#22514: emacs INFO pages have "?"s instead of "'"s
  2016-02-01  3:21 bug#22514: emacs INFO pages have "?"s instead of "'"s myglc2
  2016-02-01 18:03 ` myglc2
@ 2016-02-02 14:24 ` Ludovic Courtès
  2016-02-03  4:22   ` myglc2
  1 sibling, 1 reply; 5+ messages in thread
From: Ludovic Courtès @ 2016-02-02 14:24 UTC (permalink / raw)
  To: myglc2; +Cc: 22514, request

[-- Attachment #1: Type: text/plain, Size: 769 bytes --]

retitle 22514 Missing environment variables when logging in via SSH
merge 22513 22175
thanks

myglc2 <myglc2@gmail.com> skribis:

> In emacs INFO pages, single quotes "'" appear as question marks "?" and
> 'echo $LANG' returns a blank line.
>
> I am running guixSD on a headless server & logging in via the iTerm2
> terminal emulator running on Max OS X... e.g. 'ssh' & 'emacs -nw'

This bug is due to <http://bugs.gnu.org/22175>, which appears to be
fixed by the patch below (I tested it in a VM.)

Could you confirm that it works for you?  You would need to apply the
patch with ‘patch -p1 bugfix.patch’ in a fresh checkout of Guix, and to
run ‘./configure && make && ./pre-inst-env guix system reconfigure’ from
there.

TIA,
Ludo’.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Type: text/x-patch, Size: 713 bytes --]

diff --git a/gnu/system.scm b/gnu/system.scm
index b4264fe..59fc20c 100644
--- a/gnu/system.scm
+++ b/gnu/system.scm
@@ -465,6 +465,17 @@ else
   export PATH=\"$HOME/.guix-profile/bin:$PATH\"
 fi
 
+# Since 'lshd' does not use pam_env, /etc/environment must be explicitly
+# loaded when someone logs in via SSH.  See <http://bugs.gnu.org/22175>.
+# We need 'PATH' to be defined here, for 'cat' and 'cut'.
+if [ -f /etc/environment -a -n \"$SSH_CLIENT\" \\
+     -a -z \"$LINUX_MODULE_DIRECTORY\" ]
+then
+  . /etc/environment
+  export `cat /etc/environment | cut -d= -f1`
+fi
+
+
 # Allow Aspell to find dictionaries installed in the user profile.
 export ASPELL_CONF=\"dict-dir $HOME/.guix-profile/lib/aspell\"

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* bug#22514: emacs INFO pages have "?"s instead of "'"s
  2016-02-02 14:24 ` Ludovic Courtès
@ 2016-02-03  4:22   ` myglc2
  2016-02-03 10:24     ` Ludovic Courtès
  0 siblings, 1 reply; 5+ messages in thread
From: myglc2 @ 2016-02-03  4:22 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 22514, request

ludo@gnu.org (Ludovic Courtès) writes:

> retitle 22514 Missing environment variables when logging in via SSH
> merge 22513 22175
> thanks
>
> myglc2 <myglc2@gmail.com> skribis:
>
>> In emacs INFO pages, single quotes "'" appear as question marks "?" and
>> 'echo $LANG' returns a blank line.
>>
>> I am running guixSD on a headless server & logging in via the iTerm2
>> terminal emulator running on Max OS X... e.g. 'ssh' & 'emacs -nw'
>
> This bug is due to <http://bugs.gnu.org/22175>, which appears to be
> fixed by the patch below (I tested it in a VM.)
>
> Could you confirm that it works for you?

Yes, that fixes it here. Thank you.

> You would need to apply the
> patch with ‘patch -p1 bugfix.patch’ in a fresh checkout of Guix, and to
> run ‘./configure && make && ./pre-inst-env guix system reconfigure’ from
> there.
>
> TIA,
> Ludo’.
>
> diff --git a/gnu/system.scm b/gnu/system.scm
> index b4264fe..59fc20c 100644
> --- a/gnu/system.scm
> +++ b/gnu/system.scm
> @@ -465,6 +465,17 @@ else
>    export PATH=\"$HOME/.guix-profile/bin:$PATH\"
>  fi
>  
> +# Since 'lshd' does not use pam_env, /etc/environment must be explicitly
> +# loaded when someone logs in via SSH.  See <http://bugs.gnu.org/22175>.
> +# We need 'PATH' to be defined here, for 'cat' and 'cut'.
> +if [ -f /etc/environment -a -n \"$SSH_CLIENT\" \\
> +     -a -z \"$LINUX_MODULE_DIRECTORY\" ]
> +then
> +  . /etc/environment
> +  export `cat /etc/environment | cut -d= -f1`
> +fi
> +
> +
>  # Allow Aspell to find dictionaries installed in the user profile.
>  export ASPELL_CONF=\"dict-dir $HOME/.guix-profile/lib/aspell\"

^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#22514: emacs INFO pages have "?"s instead of "'"s
  2016-02-03  4:22   ` myglc2
@ 2016-02-03 10:24     ` Ludovic Courtès
  0 siblings, 0 replies; 5+ messages in thread
From: Ludovic Courtès @ 2016-02-03 10:24 UTC (permalink / raw)
  To: myglc2; +Cc: 22514-done

myglc2 <myglc2@gmail.com> skribis:

> ludo@gnu.org (Ludovic Courtès) writes:
>
>> retitle 22514 Missing environment variables when logging in via SSH
>> merge 22513 22175
>> thanks
>>
>> myglc2 <myglc2@gmail.com> skribis:
>>
>>> In emacs INFO pages, single quotes "'" appear as question marks "?" and
>>> 'echo $LANG' returns a blank line.
>>>
>>> I am running guixSD on a headless server & logging in via the iTerm2
>>> terminal emulator running on Max OS X... e.g. 'ssh' & 'emacs -nw'
>>
>> This bug is due to <http://bugs.gnu.org/22175>, which appears to be
>> fixed by the patch below (I tested it in a VM.)
>>
>> Could you confirm that it works for you?
>
> Yes, that fixes it here. Thank you.

Great, thanks for testing!

Pushed as 2a5f0db, closing the bug now.

Ludo’.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-02-03 10:25 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-01  3:21 bug#22514: emacs INFO pages have "?"s instead of "'"s myglc2
2016-02-01 18:03 ` myglc2
2016-02-02 14:24 ` Ludovic Courtès
2016-02-03  4:22   ` myglc2
2016-02-03 10:24     ` Ludovic Courtès

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.