all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* An unwonted warning I constantly get about fontsets when I start Emacs
@ 2017-05-27  9:22 Göktuğ Kayaalp
  2017-05-27  9:42 ` Eli Zaretskii
  0 siblings, 1 reply; 17+ messages in thread
From: Göktuğ Kayaalp @ 2017-05-27  9:22 UTC (permalink / raw)
  To: help-gnu-emacs

Hi,

Since when I switched to using Emacs master as my daily driver (w/o any
real problems until now, ~in about a month I guess), whenever I start
Emacs, I get this warning:

Error (initialization): Creation of the default fontsets failed: (error Invalid script or charset name: old-italic)

My custom fonts are those which I used with 24.3 and 25.1 without any
issues like this.  And I do use some of my custom fonts for my visuals
configuration and they work.  I don't understand whether this is
sth. normal that I somehow triggered, or that I am facing a bug here.

Thanks in advance,

	gk.




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

* An unwonted warning I constantly get about fontsets when I start Emacs
@ 2017-05-27  9:25 Göktuğ Kayaalp
  0 siblings, 0 replies; 17+ messages in thread
From: Göktuğ Kayaalp @ 2017-05-27  9:25 UTC (permalink / raw)
  To: Emacs Help

Hi,

Since when I switched to using Emacs master as my daily driver (w/o any
real problems until now, ~in about a month I guess), whenever I start
Emacs, I get this warning:

Error (initialization): Creation of the default fontsets failed: (error Invalid script or charset name: old-italic)

My custom fonts are those which I used with 24.3 and 25.1 without any
issues like this.  And I do use some of my custom fonts for my visuals
configuration and they work.  I don't understand whether this is
sth. normal that I somehow triggered, or that I am facing a bug here.

Thanks in advance,

	gk.



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

* Re: An unwonted warning I constantly get about fontsets when I start Emacs
  2017-05-27  9:22 An unwonted warning I constantly get about fontsets when I start Emacs Göktuğ Kayaalp
@ 2017-05-27  9:42 ` Eli Zaretskii
  2017-05-27 11:52   ` Göktuğ Kayaalp
  0 siblings, 1 reply; 17+ messages in thread
From: Eli Zaretskii @ 2017-05-27  9:42 UTC (permalink / raw)
  To: help-gnu-emacs

> From: Göktuğ Kayaalp <self@gkayaalp.com>
> Date: Sat, 27 May 2017 12:22:22 +0300
> 
> Since when I switched to using Emacs master as my daily driver (w/o any
> real problems until now, ~in about a month I guess), whenever I start
> Emacs, I get this warning:
> 
> Error (initialization): Creation of the default fontsets failed: (error Invalid script or charset name: old-italic)
> 
> My custom fonts are those which I used with 24.3 and 25.1 without any
> issues like this.  And I do use some of my custom fonts for my visuals
> configuration and they work.  I don't understand whether this is
> sth. normal that I somehow triggered, or that I am facing a bug here.

Please show your fontset-related customizations.



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

* Re: An unwonted warning I constantly get about fontsets when I start Emacs
  2017-05-27  9:42 ` Eli Zaretskii
@ 2017-05-27 11:52   ` Göktuğ Kayaalp
  2017-05-27 13:37     ` Eli Zaretskii
  0 siblings, 1 reply; 17+ messages in thread
From: Göktuğ Kayaalp @ 2017-05-27 11:52 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: help-gnu-emacs

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

On 2017-05-27 12:42 +03, Eli Zaretskii <eliz@gnu.org> wrote:
>> From: Göktuğ Kayaalp <self@gkayaalp.com>
>> Date: Sat, 27 May 2017 12:22:22 +0300
>> 
>> [...]
>> Error (initialization): Creation of the default fontsets failed:
>> (error Invalid script or charset name: old-italic)
>>
>> [...]
> Please show your fontset-related customizations.

I don't have any such customisations in Emacs.  Just setting the font
for some faces here and there:

,----
| (add-hook 'org-mode-hook
|           (lambda ()
|             (dotimes (n 7)
|               (set-face-attribute
|                (intern (concat "org-level-" (number-to-string (1+ n))))
|                nil :family (gk-font :sans) :overline nil))))
| 
| (set-face-attribute 'default nil
|                       :height gk-font-default-height
|                       :family (gk-font :mono)
|                       :weight 'light)
| 
| (set-face-attribute 'variable-pitch nil
|                       :height (+ 20 gk-font-default-height)
|                       :family (gk-font :serif))
| 
| (loop for attr in '(mode-line mode-line-inactive) do
|         (set-face-attribute attr nil
|                             :height (- gk-font-default-height 10)
|                             :family (gk-font :sans)
|                             :weight 'normal))
| 
|   (set-face-attribute 'header-line nil
|                       :family (gk-font :mono)
|                       :height gk-font-default-height)
| 
|   (set-face-attribute 'forecast-moon-phase nil
|                       :font (gk-font :forecast-moon-phase))
`----


I also have this config file:

~/.config/fontconfig/fonts.conf:


[-- Attachment #2: fontconfig --]
[-- Type: text/plain, Size: 3089 bytes --]

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<!--
  Font configuration
-->
<fontconfig>
  <!-- https://wiki.archlinux.org/index.php/Font_configuration -->
  <!-- Antialiasing -->
  <match target="font">
    <edit name="antialias" mode="assign">
      <bool>true</bool> </edit> </match>
  <!-- Hinting -->
  <match target="font">
    <edit name="hinting" mode="assign">
      <bool>true</bool> </edit> </match>
  <match target="font">
    <edit name="hintstyle" mode="assign">
      <const>hintfull</const> </edit> </match>
  <!-- Subpixel rendering -->
  <match target="font">
    <!-- Other options: bgr, vrgb, vbgr -->
    <edit name="rgba" mode="assign"> <const>rgb</const> </edit>
  </match>
  <match target="font">
    <edit mode="assign" name="lcdfilter">
      <const>lcddefault</const> </edit> </match>

  <!-- Replace generic bitmap font names by generic font families -->
  <match target="pattern">
    <test name="family" qual="any">
      <string>Serif</string> </test>
    <edit mode="assign" name="family">
      <string>DejaVu Serif</string> </edit> </match>
  <match target="pattern">
    <test name="family" qual="any">
      <string>Charis</string> </test>
    <edit mode="assign" name="family">
      <string>Charis SIL</string> </edit> </match>
  <match target="pattern">
    <test name="family" qual="any">
      <string>Times</string> </test>
    <edit mode="assign" name="family">
      <string>DejaVu Serif</string> </edit> </match>
  <match target="pattern">
    <test name="family" qual="any">
      <string>Sans-serif</string> </test>
    <edit mode="assign" name="family">
      <string>DejaVu Sans</string> </edit> </match>
  <match target="pattern">
    <test name="family" qual="any">
      <string>Helvetica</string> </test>
    <edit mode="assign" name="family">
      <string>DejaVu Sans</string> </edit> </match>
  <match target="pattern">
    <test name="family" qual="any">
      <string>Arial</string> </test>
    <edit mode="assign" name="family">
      <string>DejaVu Sans</string> </edit> </match>
  <match target="pattern">
    <test name="family" qual="any">
      <string>Courier</string> </test>
    <edit mode="assign" name="family">
      <string>DejaVu Sans Mono</string> </edit> </match>
  <match target="pattern">
    <test name="family" qual="any">
      <string>Consolas</string> </test>
    <edit mode="assign" name="family">
      <string>DejaVu Sans Mono</string> </edit> </match>
  <match target="pattern">
    <test name="family" qual="any">
      <string>Lucida Console</string> </test>
    <edit mode="assign" name="family">
      <string>DejaVu Sans Mono</string> </edit> </match>
  <match target="pattern">
    <test name="family" qual="any">
      <string>Monaco</string> </test>
    <edit mode="assign" name="family">
      <string>DejaVu Sans Mono</string> </edit> </match>

  <!-- Forcibly disable embedded bitmaps. -->
  <match target="font">
    <edit name="embeddedbitmap" mode="assign">
      <bool>false</bool> </edit> </match>
</fontconfig>
<!-- Local variables: -->
<!-- mode: xml -->
<!-- End: -->

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

* Re: An unwonted warning I constantly get about fontsets when I start Emacs
  2017-05-27 11:52   ` Göktuğ Kayaalp
@ 2017-05-27 13:37     ` Eli Zaretskii
  2017-05-27 13:44       ` Göktuğ Kayaalp
  0 siblings, 1 reply; 17+ messages in thread
From: Eli Zaretskii @ 2017-05-27 13:37 UTC (permalink / raw)
  To: help-gnu-emacs

> From: Göktuğ Kayaalp <self@gkayaalp.com>
> Cc: help-gnu-emacs@gnu.org
> Date: Sat, 27 May 2017 14:52:15 +0300
> 
> >> Error (initialization): Creation of the default fontsets failed:
> >> (error Invalid script or charset name: old-italic)
> >>
> >> [...]
> > Please show your fontset-related customizations.
> 
> I don't have any such customisations in Emacs.  Just setting the font
> for some faces here and there:

Strange, I don't see old-italic mentioned anywhere.

Are you sure you don't have some stale Lisp files lying around and
shadowing the ones which come with the distribution?

Also, do you see this problem with "emacs -Q"?



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

* Re: An unwonted warning I constantly get about fontsets when I start Emacs
  2017-05-27 13:37     ` Eli Zaretskii
@ 2017-05-27 13:44       ` Göktuğ Kayaalp
  2017-05-27 14:09         ` Eli Zaretskii
  0 siblings, 1 reply; 17+ messages in thread
From: Göktuğ Kayaalp @ 2017-05-27 13:44 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: help-gnu-emacs

On 2017-05-27 16:37 +03, Eli Zaretskii <eliz@gnu.org> wrote:
>> From: Göktuğ Kayaalp <self@gkayaalp.com>
>> Cc: help-gnu-emacs@gnu.org
>> Date: Sat, 27 May 2017 14:52:15 +0300
>> 
>> >> Error (initialization): Creation of the default fontsets failed:
>> >> (error Invalid script or charset name: old-italic)
>> >>
>> >> [...]
>> > Please show your fontset-related customizations.
>> 
>> I don't have any such customisations in Emacs.  Just setting the font
>> for some faces here and there:
>
> Strange, I don't see old-italic mentioned anywhere.
>
> Are you sure you don't have some stale Lisp files lying around and
> shadowing the ones which come with the distribution?

None of my lisp files contain the word `fontset'.  I've looked quite a
bit, but haven't found anything related.  I just learnt what it is,
actually.

> Also, do you see this problem with "emacs -Q"?

Yes.  The message comes up in the *Warnings* buffer with or without -Q.
No problems with any functionality so far tho, just the warning.

	gk.



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

* Re: An unwonted warning I constantly get about fontsets when I start Emacs
  2017-05-27 13:44       ` Göktuğ Kayaalp
@ 2017-05-27 14:09         ` Eli Zaretskii
  2017-05-27 22:27           ` Göktuğ Kayaalp
  0 siblings, 1 reply; 17+ messages in thread
From: Eli Zaretskii @ 2017-05-27 14:09 UTC (permalink / raw)
  To: help-gnu-emacs

> From: Göktuğ Kayaalp <self@gkayaalp.com>
> Cc: help-gnu-emacs@gnu.org
> Date: Sat, 27 May 2017 16:44:18 +0300
> 
> >> >> Error (initialization): Creation of the default fontsets failed:
> >> >> (error Invalid script or charset name: old-italic)
> >> >>
> >> >> [...]
> >> > Please show your fontset-related customizations.
> >> 
> >> I don't have any such customisations in Emacs.  Just setting the font
> >> for some faces here and there:
> >
> > Strange, I don't see old-italic mentioned anywhere.
> >
> > Are you sure you don't have some stale Lisp files lying around and
> > shadowing the ones which come with the distribution?
> 
> None of my lisp files contain the word `fontset'.  I've looked quite a
> bit, but haven't found anything related.  I just learnt what it is,
> actually.
> 
> > Also, do you see this problem with "emacs -Q"?
> 
> Yes.  The message comes up in the *Warnings* buffer with or without -Q.
> No problems with any functionality so far tho, just the warning.

This becomes more and more stuff for a bug report, not for discussion
here.

The old-italic script is defined in charscript.el, so check that file
for problems (damaged, truncated, outdated).  It is then used in
fontset.el, and the error you see comes from there, see the function
create-default-fontset.  Maybe by looking into these two files, or by
searching your system for outdated versions which shadow these, you
will find the culprit.

My next suggestion is to make sure the tree where you build Emacs is
clean, and doesn't contain any stale files from the previous versions
you've built.



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

* Re: An unwonted warning I constantly get about fontsets when I start Emacs
  2017-05-27 14:09         ` Eli Zaretskii
@ 2017-05-27 22:27           ` Göktuğ Kayaalp
  2017-05-28  4:15             ` Eli Zaretskii
  0 siblings, 1 reply; 17+ messages in thread
From: Göktuğ Kayaalp @ 2017-05-27 22:27 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: help-gnu-emacs

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

On 2017-05-27 17:09 +03, Eli Zaretskii <eliz@gnu.org> wrote:
>> From: Göktuğ Kayaalp <self@gkayaalp.com>
>> Cc: help-gnu-emacs@gnu.org
>> Date: Sat, 27 May 2017 16:44:18 +0300
>> 
>> >> >> Error (initialization): Creation of the default fontsets failed:
>> >> >> (error Invalid script or charset name: old-italic)
>> >> >>
>> >> >> [...]
>> >> > Please show your fontset-related customizations.
>> >> 
>> >> I don't have any such customisations in Emacs.  Just setting the font
>> >> for some faces here and there:
>> >
>> > Strange, I don't see old-italic mentioned anywhere.
>> >
>> > Are you sure you don't have some stale Lisp files lying around and
>> > shadowing the ones which come with the distribution?
>> 
>> None of my lisp files contain the word `fontset'.  I've looked quite a
>> bit, but haven't found anything related.  I just learnt what it is,
>> actually.
>> 
>> > Also, do you see this problem with "emacs -Q"?
>> 
>> Yes.  The message comes up in the *Warnings* buffer with or without -Q.
>> No problems with any functionality so far tho, just the warning.
>
> This becomes more and more stuff for a bug report, not for discussion
> here.
>
> The old-italic script is defined in charscript.el, so check that file
> for problems (damaged, truncated, outdated).  It is then used in
> fontset.el, and the error you see comes from there, see the function
> create-default-fontset.  Maybe by looking into these two files, or by
> searching your system for outdated versions which shadow these, you
> will find the culprit.

charscript.el seems alright, it's installed only as an elc file, and
seems okay (I've diffed the .elc in the git repo with the installed
copy, no differences, then I recompiled the repo version via
‘byte-compile-file’, and diffed again, no differences).

In fontset.el, ‘old-italic’ appears in function ‘setup-default-fontset’,
called by ‘create-default-fontset’.  There, after the call to
‘new-fontset’, there's a dolist expression commented «For simple
scripts», which runs this expression on a list of symbols including
‘old-italic’:

(set-fontset-font "fontset-default"
                    script (font-spec :registry "iso10646-1" :script script)
                    nil 'append)

I tried this:

(let ((script 'old-italic))
  (set-fontset-font "fontset-default"
                    script (font-spec :registry "iso10646-1" :script script)
                    nil 'append))

Which gave me this backtrace:

Debugger entered--Lisp error: (error "Invalid script or charset name: old-italic")
  set-fontset-font("fontset-default" old-italic #<font-spec nil nil nil nil iso10646-1 nil nil nil nil nil nil nil ((:script . old-italic))> nil append)
  (let ((script (quote old-italic))) (set-fontset-font "fontset-default" script (font-spec :registry "iso10646-1" :script script) nil (quote append)))
  eval-region(146 322 t #[257 "\300\242b\210\301\207" [(322) (let ((script (quote old-italic))) (set-fontset-font "fontset-default" script (font-spec :registry "iso10646-1" :script script) nil (quote append)))] 2 "\n\n(fn IGNORE)"])  ; Reading at buffer position 146
[...]

The only emacs installation on my system is that one from the git repo
which I use daily, and this is the first build I made from this clone of
the repo.  It't virtually impossible that any shadowing happens.  Git
does not report any modified files.

> My next suggestion is to make sure the tree where you build Emacs is
> clean, and doesn't contain any stale files from the previous versions
> you've built.

As above.  I'll report this as a bug if you tell me to do so.  I'm
attaching charscript.el as it seems to be a generated file not tracked
by git.


[-- Attachment #2: charscript.el --]
[-- Type: application/emacs-lisp, Size: 10101 bytes --]

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

* Re: An unwonted warning I constantly get about fontsets when I start Emacs
  2017-05-27 22:27           ` Göktuğ Kayaalp
@ 2017-05-28  4:15             ` Eli Zaretskii
  2017-05-28  4:33               ` Eli Zaretskii
  2017-05-28 13:16               ` Göktuğ Kayaalp
  0 siblings, 2 replies; 17+ messages in thread
From: Eli Zaretskii @ 2017-05-28  4:15 UTC (permalink / raw)
  To: help-gnu-emacs

> From: Göktuğ Kayaalp <self@gkayaalp.com>
> Cc: help-gnu-emacs@gnu.org
> Date: Sun, 28 May 2017 01:27:30 +0300
> 
> > The old-italic script is defined in charscript.el, so check that file
> > for problems (damaged, truncated, outdated).  It is then used in
> > fontset.el, and the error you see comes from there, see the function
> > create-default-fontset.  Maybe by looking into these two files, or by
> > searching your system for outdated versions which shadow these, you
> > will find the culprit.
> 
> charscript.el seems alright, it's installed only as an elc file, and
> seems okay (I've diffed the .elc in the git repo with the installed
> copy, no differences, then I recompiled the repo version via
> ‘byte-compile-file’, and diffed again, no differences).
> 
> In fontset.el, ‘old-italic’ appears in function ‘setup-default-fontset’,
> called by ‘create-default-fontset’.  There, after the call to
> ‘new-fontset’, there's a dolist expression commented «For simple
> scripts», which runs this expression on a list of symbols including
> ‘old-italic’:
> 
> (set-fontset-font "fontset-default"
>                     script (font-spec :registry "iso10646-1" :script script)
>                     nil 'append)
> 
> I tried this:
> 
> (let ((script 'old-italic))
>   (set-fontset-font "fontset-default"
>                     script (font-spec :registry "iso10646-1" :script script)
>                     nil 'append))
> 
> Which gave me this backtrace:
> 
> Debugger entered--Lisp error: (error "Invalid script or charset name: old-italic")
>   set-fontset-font("fontset-default" old-italic #<font-spec nil nil nil nil iso10646-1 nil nil nil nil nil nil nil ((:script . old-italic))> nil append)
>   (let ((script (quote old-italic))) (set-fontset-font "fontset-default" script (font-spec :registry "iso10646-1" :script script) nil (quote append)))
>   eval-region(146 322 t #[257 "\300\242b\210\301\207" [(322) (let ((script (quote old-italic))) (set-fontset-font "fontset-default" script (font-spec :registry "iso10646-1" :script script) nil (quote append)))] 2 "\n\n(fn IGNORE)"])  ; Reading at buffer position 146
> [...]

What does the following produce in your Emacs:

  M-: (aref char-script-table #x10301) RET

> The only emacs installation on my system is that one from the git repo
> which I use daily, and this is the first build I made from this clone of
> the repo.  It't virtually impossible that any shadowing happens.  Git
> does not report any modified files.

The command list-load-path-shadows will produce a list of shadowed
files, if there are any.  (report-emacs-bug invokes that command
internally and includes its results in the bug report, which is one
more reason to use report-emacs-bug for such matters.)

> > My next suggestion is to make sure the tree where you build Emacs is
> > clean, and doesn't contain any stale files from the previous versions
> > you've built.
> 
> As above.

I meant something like "git clean -x -f -f".  Or maybe clone the
repository anew.  These things are hard to detect by looking, and a
single stale file can drive you mad with its implications.

> I'll report this as a bug if you tell me to do so.

I think it's long overdue.

> I'm attaching charscript.el as it seems to be a generated file not
> tracked by git.

And here's what seems to be the root cause of your problem:

    (#x10300 #x1032F old-ıtalic)

That ı in ıtalic is the dotless i character, whereas it should be the
Latin i character.  I see a few more of those elsewhere in the file,
all of them will cause similar problems.  I'm guessing that some bug
causes this in your locale, so as the first thing please delete this
file and let the Emacs build process re-generate it, in the hope that
the bug was meanwhile fixed.  If the regenerated file has the same
problem, please do report a bug about that.



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

* Re: An unwonted warning I constantly get about fontsets when I start Emacs
  2017-05-28  4:15             ` Eli Zaretskii
@ 2017-05-28  4:33               ` Eli Zaretskii
  2017-05-28  7:56                 ` tomas
  2017-05-28 13:14                 ` Göktuğ Kayaalp
  2017-05-28 13:16               ` Göktuğ Kayaalp
  1 sibling, 2 replies; 17+ messages in thread
From: Eli Zaretskii @ 2017-05-28  4:33 UTC (permalink / raw)
  To: help-gnu-emacs

> Date: Sun, 28 May 2017 07:15:25 +0300
> From: Eli Zaretskii <eliz@gnu.org>
> 
> > I'm attaching charscript.el as it seems to be a generated file not
> > tracked by git.
> 
> And here's what seems to be the root cause of your problem:
> 
>     (#x10300 #x1032F old-ıtalic)
> 
> That ı in ıtalic is the dotless i character, whereas it should be the
> Latin i character.  I see a few more of those elsewhere in the file,
> all of them will cause similar problems.  I'm guessing that some bug
> causes this in your locale, so as the first thing please delete this
> file and let the Emacs build process re-generate it, in the hope that
> the bug was meanwhile fixed.  If the regenerated file has the same
> problem, please do report a bug about that.

And I think I know what causes that: this file is produced by running
Awk, and the Awk program uses 'tolower', which in your locale produces
the dotless i characters instead of the Latin i.

So running the build after setting LC_ALL=C should fix the problem.



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

* Re: An unwonted warning I constantly get about fontsets when I start Emacs
  2017-05-28  4:33               ` Eli Zaretskii
@ 2017-05-28  7:56                 ` tomas
  2017-05-28 15:01                   ` Eli Zaretskii
  2017-05-28 13:14                 ` Göktuğ Kayaalp
  1 sibling, 1 reply; 17+ messages in thread
From: tomas @ 2017-05-28  7:56 UTC (permalink / raw)
  To: help-gnu-emacs

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sun, May 28, 2017 at 07:33:56AM +0300, Eli Zaretskii wrote:

[...]

> And I think I know what causes that: this file is produced by running
> Awk, and the Awk program uses 'tolower', which in your locale produces
> the dotless i characters instead of the Latin i.
> 
> So running the build after setting LC_ALL=C should fix the problem.

As a (mostly harmless) bystander, let me cheer from the peanut gallery.
Wow.

- -- t
> 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAlkqgsUACgkQBcgs9XrR2kZ52wCdFaOCP2sjrq6seoD3X0bLeGCg
FN0AnAvZMvXllXIZwLez6aDApNis0M64
=qnof
-----END PGP SIGNATURE-----



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

* Re: An unwonted warning I constantly get about fontsets when I start Emacs
  2017-05-28  4:33               ` Eli Zaretskii
  2017-05-28  7:56                 ` tomas
@ 2017-05-28 13:14                 ` Göktuğ Kayaalp
  2017-05-28 14:32                   ` Göktuğ Kayaalp
  1 sibling, 1 reply; 17+ messages in thread
From: Göktuğ Kayaalp @ 2017-05-28 13:14 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: help-gnu-emacs

On 2017-05-28 07:33 +03, Eli Zaretskii <eliz@gnu.org> wrote:
>> Date: Sun, 28 May 2017 07:15:25 +0300
>> From: Eli Zaretskii <eliz@gnu.org>
>> 
>> > I'm attaching charscript.el as it seems to be a generated file not
>> > tracked by git.
>> 
>> And here's what seems to be the root cause of your problem:
>> 
>>     (#x10300 #x1032F old-ıtalic)
>> 
>> That ı in ıtalic is the dotless i character, whereas it should be the
>> Latin i character.  I see a few more of those elsewhere in the file,
>> all of them will cause similar problems.  I'm guessing that some bug
>> causes this in your locale, so as the first thing please delete this
>> file and let the Emacs build process re-generate it, in the hope that
>> the bug was meanwhile fixed.  If the regenerated file has the same
>> problem, please do report a bug about that.
>
> And I think I know what causes that: this file is produced by running
> Awk, and the Awk program uses 'tolower', which in your locale produces
> the dotless i characters instead of the Latin i.
>
> So running the build after setting LC_ALL=C should fix the problem.

I'll try that now and report, but that seems a bit improbable to me as
this is my locale setup:

$ locale
LANG=en_GB.UTF-8
LANGUAGE=en_US
LC_CTYPE="en_GB.UTF-8"
LC_NUMERIC=tr_TR.UTF-8
LC_TIME=tr_TR.UTF-8
LC_COLLATE="en_GB.UTF-8"
LC_MONETARY=tr_TR.UTF-8
LC_MESSAGES=en_GB.UTF-8
LC_PAPER=tr_TR.UTF-8
LC_NAME=tr_TR.UTF-8
LC_ADDRESS=tr_TR.UTF-8
LC_TELEPHONE=tr_TR.UTF-8
LC_MEASUREMENT=tr_TR.UTF-8
LC_IDENTIFICATION=tr_TR.UTF-8
LC_ALL=

If this and the other recommendations from your other message don't fix
the problem, I'll report a bug.



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

* Re: An unwonted warning I constantly get about fontsets when I start Emacs
  2017-05-28  4:15             ` Eli Zaretskii
  2017-05-28  4:33               ` Eli Zaretskii
@ 2017-05-28 13:16               ` Göktuğ Kayaalp
  1 sibling, 0 replies; 17+ messages in thread
From: Göktuğ Kayaalp @ 2017-05-28 13:16 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: help-gnu-emacs

On 2017-05-28 07:15 +03, Eli Zaretskii <eliz@gnu.org> wrote:
>> From: Göktuğ Kayaalp <self@gkayaalp.com>
>> Cc: help-gnu-emacs@gnu.org
>> Date: Sun, 28 May 2017 01:27:30 +0300
>> 
>> > The old-italic script is defined in charscript.el, so check that file
>> > for problems (damaged, truncated, outdated).  It is then used in
>> > fontset.el, and the error you see comes from there, see the function
>> > create-default-fontset.  Maybe by looking into these two files, or by
>> > searching your system for outdated versions which shadow these, you
>> > will find the culprit.
>> 
>> charscript.el seems alright, it's installed only as an elc file, and
>> seems okay (I've diffed the .elc in the git repo with the installed
>> copy, no differences, then I recompiled the repo version via
>> ‘byte-compile-file’, and diffed again, no differences).
>> 
>> In fontset.el, ‘old-italic’ appears in function ‘setup-default-fontset’,
>> called by ‘create-default-fontset’.  There, after the call to
>> ‘new-fontset’, there's a dolist expression commented «For simple
>> scripts», which runs this expression on a list of symbols including
>> ‘old-italic’:
>> 
>> (set-fontset-font "fontset-default"
>>                     script (font-spec :registry "iso10646-1" :script script)
>>                     nil 'append)
>> 
>> I tried this:
>> 
>> (let ((script 'old-italic))
>>   (set-fontset-font "fontset-default"
>>                     script (font-spec :registry "iso10646-1" :script script)
>>                     nil 'append))
>> 
>> Which gave me this backtrace:
>> 
>> Debugger entered--Lisp error: (error "Invalid script or charset name: old-italic")
>>   set-fontset-font("fontset-default" old-italic #<font-spec nil nil nil nil iso10646-1 nil nil nil nil nil nil nil ((:script . old-italic))> nil append)
>>   (let ((script (quote old-italic))) (set-fontset-font "fontset-default" script (font-spec :registry "iso10646-1" :script script) nil (quote append)))
>>   eval-region(146 322 t #[257 "\300\242b\210\301\207" [(322) (let ((script (quote old-italic))) (set-fontset-font "fontset-default" script (font-spec :registry "iso10646-1" :script script) nil (quote append)))] 2 "\n\n(fn IGNORE)"])  ; Reading at buffer position 146
>> [...]
>
> What does the following produce in your Emacs:
>
>   M-: (aref char-script-table #x10301) RET

old-ıtalic

>> The only emacs installation on my system is that one from the git repo
>> which I use daily, and this is the first build I made from this clone of
>> the repo.  It't virtually impossible that any shadowing happens.  Git
>> does not report any modified files.
>
> The command list-load-path-shadows will produce a list of shadowed
> files, if there are any.  (report-emacs-bug invokes that command
> internally and includes its results in the bug report, which is one
> more reason to use report-emacs-bug for such matters.)

/home/g/co/emacs.d/packages/org/ox-groff hides /home/g/co/emacs.d/site/ox-groff
/home/g/co/emacs.d/site/let-alist hides /home/g/local/share/emacs/26.0.50/lisp/emacs-lisp/let-alist

2 Emacs Lisp load-path shadowings were found

>> > My next suggestion is to make sure the tree where you build Emacs is
>> > clean, and doesn't contain any stale files from the previous versions
>> > you've built.
>> 
>> As above.
>
> I meant something like "git clean -x -f -f".  Or maybe clone the
> repository anew.  These things are hard to detect by looking, and a
> single stale file can drive you mad with its implications.
>
>> I'll report this as a bug if you tell me to do so.
>
> I think it's long overdue.
>
>> I'm attaching charscript.el as it seems to be a generated file not
>> tracked by git.
>
> And here's what seems to be the root cause of your problem:
>
>     (#x10300 #x1032F old-ıtalic)
>
> That ı in ıtalic is the dotless i character, whereas it should be the
> Latin i character.  I see a few more of those elsewhere in the file,
> all of them will cause similar problems.  I'm guessing that some bug
> causes this in your locale, so as the first thing please delete this
> file and let the Emacs build process re-generate it, in the hope that
> the bug was meanwhile fixed.  If the regenerated file has the same
> problem, please do report a bug about that.

As I said in my other post, I'll try these and if it persists I'll
report a bug.

       gk.



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

* Re: An unwonted warning I constantly get about fontsets when I start Emacs
  2017-05-28 13:14                 ` Göktuğ Kayaalp
@ 2017-05-28 14:32                   ` Göktuğ Kayaalp
  2017-05-28 15:41                     ` Eli Zaretskii
  0 siblings, 1 reply; 17+ messages in thread
From: Göktuğ Kayaalp @ 2017-05-28 14:32 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: help-gnu-emacs

On 2017-05-28 16:14 +03, Göktuğ Kayaalp <self@gkayaalp.com> wrote:
> On 2017-05-28 07:33 +03, Eli Zaretskii <eliz@gnu.org> wrote:
>>> Date: Sun, 28 May 2017 07:15:25 +0300
>>> From: Eli Zaretskii <eliz@gnu.org>
>>> 
>>> > I'm attaching charscript.el as it seems to be a generated file not
>>> > tracked by git.
>>> 
>>> And here's what seems to be the root cause of your problem:
>>> 
>>>     (#x10300 #x1032F old-ıtalic)
>>> 
>>> That ı in ıtalic is the dotless i character, whereas it should be the
>>> Latin i character.  I see a few more of those elsewhere in the file,
>>> all of them will cause similar problems.  I'm guessing that some bug
>>> causes this in your locale, so as the first thing please delete this
>>> file and let the Emacs build process re-generate it, in the hope that
>>> the bug was meanwhile fixed.  If the regenerated file has the same
>>> problem, please do report a bug about that.
>>
>> And I think I know what causes that: this file is produced by running
>> Awk, and the Awk program uses 'tolower', which in your locale produces
>> the dotless i characters instead of the Latin i.
>>
>> So running the build after setting LC_ALL=C should fix the problem.

I've tried this:

git clean -x -f -f
./autogen.sh all
./configure --prefix=$HOME/local --with-x-toolkit=yes --with-modules \
	    --with-file-notification=yes --with-mailutils ;
LC_ALL=C make
./src/emacs -Q

And this has fixed the problem (i.e. no warnings anymore, built today's
master).  So now I'm not sure if this is a bug that I've triggered, or a
mistake in my build procedure.  If I'm not told otherwise, I'll file a
bug report when I have time.

> I'll try that now and report, but that seems a bit improbable to me as
> this is my locale setup:
>
> $ locale
> LANG=en_GB.UTF-8
> LANGUAGE=en_US
> LC_CTYPE="en_GB.UTF-8"
> LC_NUMERIC=tr_TR.UTF-8
> LC_TIME=tr_TR.UTF-8
> LC_COLLATE="en_GB.UTF-8"
> LC_MONETARY=tr_TR.UTF-8
> LC_MESSAGES=en_GB.UTF-8
> LC_PAPER=tr_TR.UTF-8
> LC_NAME=tr_TR.UTF-8
> LC_ADDRESS=tr_TR.UTF-8
> LC_TELEPHONE=tr_TR.UTF-8
> LC_MEASUREMENT=tr_TR.UTF-8
> LC_IDENTIFICATION=tr_TR.UTF-8
> LC_ALL=
>
> If this and the other recommendations from your other message don't fix
> the problem, I'll report a bug.



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

* Re: An unwonted warning I constantly get about fontsets when I start Emacs
  2017-05-28  7:56                 ` tomas
@ 2017-05-28 15:01                   ` Eli Zaretskii
  0 siblings, 0 replies; 17+ messages in thread
From: Eli Zaretskii @ 2017-05-28 15:01 UTC (permalink / raw)
  To: help-gnu-emacs

> Date: Sun, 28 May 2017 09:56:53 +0200
> From: <tomas@tuxteam.de>
> 
> As a (mostly harmless) bystander, let me cheer from the peanut gallery.
> Wow.

<Nod>



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

* Re: An unwonted warning I constantly get about fontsets when I start Emacs
  2017-05-28 14:32                   ` Göktuğ Kayaalp
@ 2017-05-28 15:41                     ` Eli Zaretskii
  2017-05-28 18:14                       ` Göktuğ Kayaalp
  0 siblings, 1 reply; 17+ messages in thread
From: Eli Zaretskii @ 2017-05-28 15:41 UTC (permalink / raw)
  To: help-gnu-emacs

> From: Göktuğ Kayaalp <self@gkayaalp.com>
> Cc: help-gnu-emacs@gnu.org
> Date: Sun, 28 May 2017 17:32:13 +0300
> 
> >> So running the build after setting LC_ALL=C should fix the problem.
> 
> I've tried this:
> 
> git clean -x -f -f
> ./autogen.sh all
> ./configure --prefix=$HOME/local --with-x-toolkit=yes --with-modules \
> 	    --with-file-notification=yes --with-mailutils ;
> LC_ALL=C make
> ./src/emacs -Q
> 
> And this has fixed the problem (i.e. no warnings anymore, built today's
> master).  So now I'm not sure if this is a bug that I've triggered, or a
> mistake in my build procedure.  If I'm not told otherwise, I'll file a
> bug report when I have time.

Please try this:

  . go to the admin/unidata directory of the Emacs source tree
  . type the following command from the shell prompt:

     make -W Blocks.txt

This should regenerate lisp/international/charscript.el.  Please see
if it has the same problem with dotless i you had originally.  If it
does, then repeat the same command, this time setting LC_ALL=C, like
this:

     LC_ALL=C make -W Blocks.txt

This should again regenerate charscript.el, but with the correct
script names, using the Latin i letter.

If indeed you see what I describe above, please file a bug report with
this information.  Thanks.



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

* Re: An unwonted warning I constantly get about fontsets when I start Emacs
  2017-05-28 15:41                     ` Eli Zaretskii
@ 2017-05-28 18:14                       ` Göktuğ Kayaalp
  0 siblings, 0 replies; 17+ messages in thread
From: Göktuğ Kayaalp @ 2017-05-28 18:14 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: help-gnu-emacs

On 2017-05-28 18:41 +03, Eli Zaretskii <eliz@gnu.org> wrote:
>> From: Göktuğ Kayaalp <self@gkayaalp.com>
>> Cc: help-gnu-emacs@gnu.org
>> Date: Sun, 28 May 2017 17:32:13 +0300
>> 
>> >> So running the build after setting LC_ALL=C should fix the problem.
>> 
>> I've tried this:
>> 
>> git clean -x -f -f
>> ./autogen.sh all
>> ./configure --prefix=$HOME/local --with-x-toolkit=yes --with-modules \
>> 	    --with-file-notification=yes --with-mailutils ;
>> LC_ALL=C make
>> ./src/emacs -Q
>> 
>> And this has fixed the problem (i.e. no warnings anymore, built today's
>> master).  So now I'm not sure if this is a bug that I've triggered, or a
>> mistake in my build procedure.  If I'm not told otherwise, I'll file a
>> bug report when I have time.
>
> Please try this:
>
>   . go to the admin/unidata directory of the Emacs source tree
>   . type the following command from the shell prompt:
>
>      make -W Blocks.txt
>
> This should regenerate lisp/international/charscript.el.  Please see
> if it has the same problem with dotless i you had originally.  If it
> does, then repeat the same command, this time setting LC_ALL=C, like
> this:
>
>      LC_ALL=C make -W Blocks.txt
>
> This should again regenerate charscript.el, but with the correct
> script names, using the Latin i letter.
>
> If indeed you see what I describe above, please file a bug report with
> this information.  Thanks.

I've tried these, and curiously could not reproduce the issue.  I'll
guess that something funky happened with my previous build, though I
don't have no idea about what that might be.  I did do multiple builds
from different checkouts until today with these results.

Well, please excuse me for the trouble.  I'll keep an eye on this in my
later builds and file a but if somehow it repeats.

Best,

	gk.



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

end of thread, other threads:[~2017-05-28 18:14 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-27  9:22 An unwonted warning I constantly get about fontsets when I start Emacs Göktuğ Kayaalp
2017-05-27  9:42 ` Eli Zaretskii
2017-05-27 11:52   ` Göktuğ Kayaalp
2017-05-27 13:37     ` Eli Zaretskii
2017-05-27 13:44       ` Göktuğ Kayaalp
2017-05-27 14:09         ` Eli Zaretskii
2017-05-27 22:27           ` Göktuğ Kayaalp
2017-05-28  4:15             ` Eli Zaretskii
2017-05-28  4:33               ` Eli Zaretskii
2017-05-28  7:56                 ` tomas
2017-05-28 15:01                   ` Eli Zaretskii
2017-05-28 13:14                 ` Göktuğ Kayaalp
2017-05-28 14:32                   ` Göktuğ Kayaalp
2017-05-28 15:41                     ` Eli Zaretskii
2017-05-28 18:14                       ` Göktuğ Kayaalp
2017-05-28 13:16               ` Göktuğ Kayaalp
  -- strict thread matches above, loose matches on Subject: below --
2017-05-27  9:25 Göktuğ Kayaalp

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

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.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.