<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    Dear Tyrasuki, <br>
    <br>
    please try to convert all to unix kind end of line as this should
    help. Please let us know about the outcome. <br>
    We are dealing with more pressing issues at the moment.<br>
    <br>
    Thank you for understanding and good luck!<br>
    Happy routing,<br>
    Jana<br>
    <pre class="moz-signature" cols="72">Jana Babovakova (she/her) | BIRD Tech Support | CZ.NIC, z.s.p.o.</pre>
    <div class="moz-cite-prefix">On 20. 05. 25 18:47, Tyrasuki via
      Bird-users wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:99985027-e494-4421-8989-cfd335ec369b@tyrasuki.be">Hi
      there,
      <br>
      <br>
      I am experiencing bird throwing a <FATAL> Unknown character
      error on my configuration files.
      <br>
      I suspect this might be related to CRLF vs LF, as all the
      positions it reports unknown character seems to be EOL or blank
      spaces. I should mention I am currently writing my configuration
      on a Windows machine, but it has passed between Linux and Windows
      a couple times.
      <br>
      <br>
      As an example, trying to start BIRD 3.1.0 on an Alpine Linux edge
      box gives the following:
      <br>
      <br>
      ns2:~# bird
      <br>
      bird: 2025-05-20 18:39:55.659 [0001] <FATAL>
      /etc/bird.d/defines/constants.def:2:31 Unknown character
      <br>
      ns2:~# head /etc/bird.d/defines/constants.def
      <br>
      # Local preference values
      <br>
      define LP_UPSTREAM      = 100;
      <br>
      define LP_PEER          = 200;
      <br>
      define LP_DOWNSTREAM    = 300;
      <br>
      define LP_OTHER         = 150;
      <br>
      # ASNs
      <br>
      define AS_SELF          = 209718;
      <br>
      define AS_BOGON         = [
      <br>
         0,
      <br>
      ns2:~#
      <br>
      <br>
      if I merge the second line with the first line to look like this:
      <br>
      define LP_UPSTREAM      = 100;define LP_PEER          = 200;
      <br>
      <br>
      I get
      <br>
      <br>
      ns2:~# bird
      <br>
      bird: 2025-05-20 18:41:02.547 [0001] <FATAL>
      /etc/bird.d/defines/constants.def:2:61 Unknown character
      <br>
      <br>
      Similarly, on another box running Debian 12 with the
      pkg.labs.nic.cz repository, on BIRD 3.1.1:
      <br>
      bird3:~# bird
      <br>
      bird: 2025-05-20 18:42:01.451 [0001] <FATAL>
      /etc/bird/bird.conf:1:26 Unknown character
      <br>
      bird3:~# head /etc/bird/bird.conf
      <br>
      router id 172.30.187.148;
      <br>
      <br>
      log "/var/log/bird.log" { error };
      <br>
      <br>
      ipv6 table master6;
      <br>
      ipv4 table master4;
      <br>
      <br>
      include "filters/netlist/*.list";
      <br>
      include "filters/AS.list";
      <br>
      include "define/*.def";
      <br>
      bird3~#
      <br>
      <br>
      Any suggestions would be welcome, as I am currently in the process
      of refractoring my routers from BIRD1 to BIRD3, and this has put
      me at a bit of a standstill. :)
      <br>
      <br>
      Kind regards, and thank you in advance for any response,
      <br>
      Jori Vanneste / Tyrasuki
      <br>
      <br>
    </blockquote>
    <br>
  </body>
</html>